public enum DispatcherType extends 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(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
Dispatcher
public 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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016. All rights reserved.