public enum ThreadingModel extends Enum<ThreadingModel >
| Enum Constant and Description |
|---|
LISTENER
|
NONE
|
OPERATION
|
OPERATION_LISTENER
|
| Modifier and Type | Method and Description |
|---|---|
ThreadingModel |
addListener()
|
ThreadingModel |
addOperation()
|
static ThreadingModel |
fromId(byte id)
|
byte |
id()
|
ThreadingModel |
removeListener()
|
ThreadingModel |
removeOperation()
|
boolean |
threadedListener()
true if the invocation of the action result listener will be executed on a different thread (than the calling thread or an "expensive" thread, like the IO thread).
|
boolean |
threadedOperation()
true if the actual operation the action represents will be executed on a different thread than the calling thread (assuming it will be executed on the same node).
|
static ThreadingModel |
valueOf(String
Returns the enum constant of this type with the specified name.
|
static ThreadingModel |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final ThreadingModelNONE
public static final ThreadingModelOPERATION
public static final ThreadingModelLISTENER
public static final ThreadingModelOPERATION_LISTENER
public static ThreadingModel[] values()
for (ThreadingModel c : ThreadingModel.values()) System.out.println(c);
public static ThreadingModelvalueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null
public byte id()
public boolean threadedOperation()
public boolean threadedListener()
public ThreadingModeladdListener()
public ThreadingModelremoveListener()
public ThreadingModeladdOperation()
public ThreadingModelremoveOperation()
public static ThreadingModelfromId(byte id)