public enum ThreadingMode extends Enum<ThreadingMode>
Agent
s in the MediaDriver
.Enum Constant and Description |
---|
DEDICATED
3 Threads, one dedicated to each of the
Agent s. |
INVOKER
No threads are started in the
MediaDriver . |
SHARED
One thread shared by all 3
Agent s. |
SHARED_NETWORK
|
Modifier and Type | Method and Description |
---|---|
static ThreadingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThreadingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreadingMode INVOKER
MediaDriver
.
All 3 Agent
s will be composed a CompositeAgent
and
made runnable via an AgentInvoker
in the MediaDriver.Context
.
public static final ThreadingMode SHARED
Agent
s.public static final ThreadingMode SHARED_NETWORK
public static final ThreadingMode DEDICATED
Agent
s.public static ThreadingMode[] values()
for (ThreadingMode c : ThreadingMode.values()) System.out.println(c);
public static ThreadingMode 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 © 2014-2020 Real Logic Limited. All Rights Reserved.