Package org.agrona.concurrent
Enum DynamicCompositeAgent.Status
- java.lang.Object
-
- java.lang.Enum<DynamicCompositeAgent.Status>
-
- org.agrona.concurrent.DynamicCompositeAgent.Status
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DynamicCompositeAgent.Status>
- Enclosing class:
- DynamicCompositeAgent
public static enum DynamicCompositeAgent.Status extends java.lang.Enum<DynamicCompositeAgent.Status>
Enum
to indicate the current status of aDynamicCompositeAgent
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVE
Agent is not active after a successfulDynamicCompositeAgent.onStart()
CLOSED
Agent has been closed.INIT
Agent is being initialised and has not yet been started.
-
Constructor Summary
Constructors Modifier Constructor Description private
Status()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DynamicCompositeAgent.Status
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DynamicCompositeAgent.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INIT
public static final DynamicCompositeAgent.Status INIT
Agent is being initialised and has not yet been started.
-
ACTIVE
public static final DynamicCompositeAgent.Status ACTIVE
Agent is not active after a successfulDynamicCompositeAgent.onStart()
-
CLOSED
public static final DynamicCompositeAgent.Status CLOSED
Agent has been closed.
-
-
Method Detail
-
values
public static DynamicCompositeAgent.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DynamicCompositeAgent.Status c : DynamicCompositeAgent.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DynamicCompositeAgent.Status valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-