Package io.aeron.driver
Enum Class ThreadingMode
- All Implemented Interfaces:
Serializable
,Comparable<ThreadingMode>
,Constable
Threading mode to be employed by the
Agent
s in the MediaDriver
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription3 Threads, one dedicated to each of theAgent
s.No threads are started in theMediaDriver
.One thread shared by all 3Agent
s. -
Method Summary
Modifier and TypeMethodDescriptionstatic ThreadingMode
Returns the enum constant of this class with the specified name.static ThreadingMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVOKER
No threads are started in theMediaDriver
.All 3
Agent
s will be composed aCompositeAgent
and made runnable via anAgentInvoker
in theMediaDriver.Context
. -
SHARED
One thread shared by all 3Agent
s. -
SHARED_NETWORK
-
DEDICATED
3 Threads, one dedicated to each of theAgent
s.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-