Package io.vertx.tracing.opentelemetry
Enum VertxContextStorageProvider.VertxContextStorage
- java.lang.Object
-
- java.lang.Enum<VertxContextStorageProvider.VertxContextStorage>
-
- io.vertx.tracing.opentelemetry.VertxContextStorageProvider.VertxContextStorage
-
- All Implemented Interfaces:
io.opentelemetry.context.ContextStorage
,Serializable
,Comparable<VertxContextStorageProvider.VertxContextStorage>
- Enclosing class:
- VertxContextStorageProvider
public static enum VertxContextStorageProvider.VertxContextStorage extends Enum<VertxContextStorageProvider.VertxContextStorage> implements io.opentelemetry.context.ContextStorage
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.opentelemetry.context.Scope
attach(io.opentelemetry.context.Context toAttach)
io.opentelemetry.context.Scope
attach(Context vertxCtx, io.opentelemetry.context.Context toAttach)
io.opentelemetry.context.Context
current()
static VertxContextStorageProvider.VertxContextStorage
valueOf(String name)
Returns the enum constant of this type with the specified name.static VertxContextStorageProvider.VertxContextStorage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final VertxContextStorageProvider.VertxContextStorage INSTANCE
-
-
Method Detail
-
values
public static VertxContextStorageProvider.VertxContextStorage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VertxContextStorageProvider.VertxContextStorage c : VertxContextStorageProvider.VertxContextStorage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VertxContextStorageProvider.VertxContextStorage valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
attach
public io.opentelemetry.context.Scope attach(io.opentelemetry.context.Context toAttach)
- Specified by:
attach
in interfaceio.opentelemetry.context.ContextStorage
-
attach
public io.opentelemetry.context.Scope attach(Context vertxCtx, io.opentelemetry.context.Context toAttach)
-
current
public io.opentelemetry.context.Context current()
- Specified by:
current
in interfaceio.opentelemetry.context.ContextStorage
-
-