public enum SynchronousExecutor extends java.lang.Enum<SynchronousExecutor> implements java.util.concurrent.Executor
Executor
implementation that executes commands in the same thread where execute(Runnable)
is invoked. Useful when a synchronous
HttpConversationManager
is to be created.Enum Constant and Description |
---|
inst |
Modifier and Type | Method and Description |
---|---|
void |
execute(java.lang.Runnable command) |
static SynchronousExecutor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SynchronousExecutor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SynchronousExecutor inst
public static SynchronousExecutor[] values()
for (SynchronousExecutor c : SynchronousExecutor.values()) System.out.println(c);
public static SynchronousExecutor 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 void execute(java.lang.Runnable command)
execute
in interface java.util.concurrent.Executor