Package com.ultikits.ultitools.utils
Enum Class AgentConnection.State
- All Implemented Interfaces:
Serializable,Comparable<AgentConnection.State>,java.lang.constant.Constable
- Enclosing class:
AgentConnection
The states of the connection.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWaiting to retry.An attempt is in flight.Terminal: the credential was refused (401) or revoked (4401).Never started.The upgrade was accepted.Plan limit: waiting on the fixed plan-limit interval, credential kept.Terminal: the gateway'swelcomenamed another server id than the linked one (contract SEMANTICS 16); credential kept.Stopped locally (or no credential).Terminal: replaced by another connection with the same credential too often.Terminal: the framework or protocol is too old (426, 4426); credential kept. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AgentConnection.StateReturns the enum constant of this class with the specified name.static AgentConnection.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDLE
Never started. -
CONNECTING
An attempt is in flight. -
OPEN
The upgrade was accepted. -
BACKOFF
Waiting to retry. -
PLAN_LIMITED
Plan limit: waiting on the fixed plan-limit interval, credential kept. -
STOPPED
Stopped locally (or no credential). -
CREDENTIAL_REJECTED
Terminal: the credential was refused (401) or revoked (4401). -
UPGRADE_REQUIRED
Terminal: the framework or protocol is too old (426, 4426); credential kept. -
SUPERSEDED
Terminal: replaced by another connection with the same credential too often. -
SERVER_ID_MISMATCH
Terminal: the gateway'swelcomenamed another server id than the linked one (contract SEMANTICS 16); credential kept. Only a restart or a new login leaves it.
-
-
Constructor Details
-
State
private State()
-
-
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
-