public enum ThreadingModel extends java.lang.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(java.lang.String name)
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 ThreadingModel NONE
public static final ThreadingModel OPERATION
public static final ThreadingModel LISTENER
public static final ThreadingModel OPERATION_LISTENER
public static ThreadingModel[] values()
for (ThreadingModel c : ThreadingModel.values()) System.out.println(c);
public static ThreadingModel 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 byte id()
public boolean threadedOperation()
public boolean threadedListener()
public ThreadingModel addListener()
public ThreadingModel removeListener()
public ThreadingModel addOperation()
public ThreadingModel removeOperation()
public static ThreadingModel fromId(byte id)