Package io.aeron.archive.client
Enum Class AeronArchive.State
- All Implemented Interfaces:
Serializable,Comparable<AeronArchive.State>,Constable
- Enclosing class:
- AeronArchive
Describes state of the client instance.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClient was closed and can no longer be used.Client connected to the archive.Connection to the archive was lost. -
Method Summary
Modifier and TypeMethodDescriptionstatic AeronArchive.StateReturns the enum constant of this class with the specified name.static AeronArchive.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONNECTED
Client connected to the archive. -
DISCONNECTED
Connection to the archive was lost. It is only possible to close this client instance. A new client instance must be created in order to establish connection with archive again. -
CLOSED
Client was closed and can no longer be used. A new client instance must be created in order to establish connection with archive again.
-
-
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
-