|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<InferencePolicy>
com.hammurapi.eventbus.InferencePolicy
public enum InferencePolicy
Inference policy defines how new events (conclusions) posted by handlers are dispatched. Different policies provide different levels of serialization/concurrency of event processing.
| Enum Constant Summary | |
|---|---|
AFTER_EVENT
Conclusions are accumulated during event dispatching and are posted to the bus after all handlers for the current event finish execution. |
|
AFTER_HANDLER
Conclusions are accumulated during handler execution and are posted to the bus after the handler successfully finishes execution (without exception). |
|
AFTER_ROOT_EVENT
"Root event" is an event which is posted to the bus by the client code (not by a handler) through EventBus.post() method. |
|
EXCLUSIVE
Only one event at a time is dispatched by the bus. |
|
IMMEDIATELY
New events (conclusions) are dispatched immediately when they are posted. |
|
| Method Summary | |
|---|---|
static InferencePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static InferencePolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final InferencePolicy IMMEDIATELY
public static final InferencePolicy AFTER_HANDLER
public static final InferencePolicy AFTER_EVENT
public static final InferencePolicy AFTER_ROOT_EVENT
public static final InferencePolicy EXCLUSIVE
| Method Detail |
|---|
public static InferencePolicy[] values()
for (InferencePolicy c : InferencePolicy.values()) System.out.println(c);
public static InferencePolicy valueOf(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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||