Package com.zeroc.Ice.Instrumentation
Enum Class ConnectionState
- All Implemented Interfaces:
Serializable
,Comparable<ConnectionState>
,Constable
The state of an Ice connection.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe connection is active and can send and receive messages.The connection is closed and waits for potential dispatch to be finished before being destroyed and detached from the observer.The connection is being gracefully shutdown and waits for the peer to close its end of the connection.The connection is holding the reception of new messages.The connection is being validated. -
Method Summary
Modifier and TypeMethodDescriptionint
value()
static ConnectionState
valueOf
(int v) Returns the enum constant of this class with the specified name.static ConnectionState
Returns the enum constant of this class with the specified name.static ConnectionState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ConnectionStateValidating
The connection is being validated. -
ConnectionStateHolding
The connection is holding the reception of new messages. -
ConnectionStateActive
The connection is active and can send and receive messages. -
ConnectionStateClosing
The connection is being gracefully shutdown and waits for the peer to close its end of the connection. -
ConnectionStateClosed
The connection is closed and waits for potential dispatch to be finished before being destroyed and detached from the observer.
-
-
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
-
value
public int value() -
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:
v
- 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
-