public static enum Event.EventMode extends java.lang.Enum<Event.EventMode>
AUTO - The event executor will run the script under ASYNC mode if the event is being executed from a non-event thread.
The event will be executed in BLOCKING mode when being executed under an event-based thread. This means that
when you call EventExecutor.execute(Event event)
or MethodProvider.execute(Event event)
within a thread being used to execute another event, the execution method will block.
BLOCKING - The event execution call will block until the event has completed.
ASYNC - The event execution call will queue the event on a separate thread.
Modifier and Type | Method and Description |
---|---|
static Event.EventMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Event.EventMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Event.EventMode BLOCKING
public static final Event.EventMode ASYNC
public static Event.EventMode[] values()
for (Event.EventMode c : Event.EventMode.values()) System.out.println(c);
public static Event.EventMode 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 null