Package com.zeroc.Ice
Enum Class ACMHeartbeat
- All Implemented Interfaces:
Serializable
,Comparable<ACMHeartbeat>
,Constable
Specifies the heartbeat semantics for Active Connection Management.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSend a heartbeat at regular intervals until the connection is closed.Disables heartbeats.Send a heartbeat at regular intervals if the connection is idle and only if there are pending dispatch.Send a heartbeat at regular intervals when the connection is idle. -
Method Summary
Modifier and TypeMethodDescriptionint
value()
static ACMHeartbeat
valueOf
(int v) Returns the enum constant of this class with the specified name.static ACMHeartbeat
Returns the enum constant of this class with the specified name.static ACMHeartbeat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HeartbeatOff
Disables heartbeats. -
HeartbeatOnDispatch
Send a heartbeat at regular intervals if the connection is idle and only if there are pending dispatch. -
HeartbeatOnIdle
Send a heartbeat at regular intervals when the connection is idle. -
HeartbeatAlways
Send a heartbeat at regular intervals until the connection is closed.
-
-
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
-