public static enum ContextProvider.NoOp extends java.lang.Enum<ContextProvider.NoOp> implements ContextProvider
ContextProvider.NoOp| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static ContextProvider.NoOp |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ContextProvider.NoOp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<A> java.util.concurrent.Callable |
wrapInContextAware(java.util.concurrent.Callable<A> callable)
Wraps a
Callable so that it executes with the context that is associated with the
current context. |
java.lang.Runnable |
wrapInContextAware(java.lang.Runnable runnable)
Wraps a
Runnable so that it executes with the context that is associated with the
current context. |
public static final ContextProvider.NoOp INSTANCE
public static ContextProvider.NoOp[] values()
for (ContextProvider.NoOp c : ContextProvider.NoOp.values()) System.out.println(c);
public static ContextProvider.NoOp valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.Runnable wrapInContextAware(java.lang.Runnable runnable)
ContextProviderRunnable so that it executes with the context that is associated with the
current context.wrapInContextAware in interface ContextProviderrunnable - a Runnable objectRunnable objectpublic <A> java.util.concurrent.Callable wrapInContextAware(java.util.concurrent.Callable<A> callable)
ContextProviderCallable so that it executes with the context that is associated with the
current context.wrapInContextAware in interface ContextProvidercallable - a Callable objectCallable object