public enum DispatcherType extends java.lang.Enum<DispatcherType>
Dispatcher.| Enum Constant and Description |
|---|
DISPATCHER_GROUP
A grouped
Dispatcher |
MPSC
A
Dispatcher which uses a simple lock-free queue based message passing |
RING_BUFFER
A
Dispatcher which uses a RingBuffer for dispatching |
SYNCHRONOUS
A
Dispatcher which uses the current thread for dispatching |
THREAD_POOL_EXECUTOR
A
Dispatcher which uses a ThreadPoolExecutor for dispatching |
WORK_QUEUE
A
Dispatcher which uses a multi-threaded RingBuffer for dispatching |
| Modifier and Type | Method and Description |
|---|---|
static DispatcherType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DispatcherType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DispatcherType DISPATCHER_GROUP
Dispatcherpublic static final DispatcherType RING_BUFFER
Dispatcher which uses a RingBuffer for dispatchingpublic static final DispatcherType MPSC
Dispatcher which uses a simple lock-free queue based message passingpublic static final DispatcherType SYNCHRONOUS
Dispatcher which uses the current thread for dispatchingpublic static final DispatcherType THREAD_POOL_EXECUTOR
Dispatcher which uses a ThreadPoolExecutor for dispatchingpublic static final DispatcherType WORK_QUEUE
Dispatcher which uses a multi-threaded RingBuffer for dispatchingpublic static DispatcherType[] values()
for (DispatcherType c : DispatcherType.values()) System.out.println(c);
public static DispatcherType 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