public static enum ContextTrampoline.Propagation extends Enum<ContextTrampoline.Propagation>
| Enum Constant and Description |
|---|
OPTIMIZED
Default propagation option that is optimized for performance
|
STRICT
Pessimistic propagation option for rare cases when thread might have
its own default values of the context variables and they must be restored.
|
| Modifier and Type | Method and Description |
|---|---|
static ContextTrampoline.Propagation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContextTrampoline.Propagation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContextTrampoline.Propagation OPTIMIZED
The logic is the following:
public static final ContextTrampoline.Propagation STRICT
The logic is the following:
public static ContextTrampoline.Propagation[] values()
for (ContextTrampoline.Propagation c : ContextTrampoline.Propagation.values()) System.out.println(c);
public static ContextTrampoline.Propagation valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021. All rights reserved.