Package com.zeroc.Ice
Enum Class ConnectionClose
- All Implemented Interfaces:
Serializable
,Comparable<ConnectionClose>
,Constable
Determines the behavior when manually closing a connection.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClose the connection immediately without sending a close connection protocol message to the peer and waiting for the peer to acknowledge it.Close the connection by notifying the peer but do not wait for pending outgoing invocations to complete.Wait for all pending invocations to complete before closing the connection. -
Method Summary
Modifier and TypeMethodDescriptionint
value()
static ConnectionClose
valueOf
(int v) Returns the enum constant of this class with the specified name.static ConnectionClose
Returns the enum constant of this class with the specified name.static ConnectionClose[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Forcefully
Close the connection immediately without sending a close connection protocol message to the peer and waiting for the peer to acknowledge it. -
Gracefully
Close the connection by notifying the peer but do not wait for pending outgoing invocations to complete. On the server side, the connection will not be closed until all incoming invocations have completed. -
GracefullyWithWait
Wait for all pending invocations to complete before closing the connection.
-
-
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
-