Package org.apache.curator.connection
Enum ConnectionHandlingPolicy.CheckTimeoutsResult
- java.lang.Object
-
- java.lang.Enum<ConnectionHandlingPolicy.CheckTimeoutsResult>
-
- org.apache.curator.connection.ConnectionHandlingPolicy.CheckTimeoutsResult
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConnectionHandlingPolicy.CheckTimeoutsResult>
- Enclosing interface:
- ConnectionHandlingPolicy
public static enum ConnectionHandlingPolicy.CheckTimeoutsResult extends java.lang.Enum<ConnectionHandlingPolicy.CheckTimeoutsResult>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTION_TIMEOUT
handle a connection timeoutNEW_CONNECTION_STRING
handle a new connection stringNOP
Do nothingRESET_CONNECTION
reset/recreate the internal ZooKeeper connectionSESSION_TIMEOUT
handle a session timeout
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConnectionHandlingPolicy.CheckTimeoutsResult
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConnectionHandlingPolicy.CheckTimeoutsResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOP
public static final ConnectionHandlingPolicy.CheckTimeoutsResult NOP
Do nothing
-
NEW_CONNECTION_STRING
public static final ConnectionHandlingPolicy.CheckTimeoutsResult NEW_CONNECTION_STRING
handle a new connection string
-
RESET_CONNECTION
public static final ConnectionHandlingPolicy.CheckTimeoutsResult RESET_CONNECTION
reset/recreate the internal ZooKeeper connection
-
CONNECTION_TIMEOUT
public static final ConnectionHandlingPolicy.CheckTimeoutsResult CONNECTION_TIMEOUT
handle a connection timeout
-
SESSION_TIMEOUT
public static final ConnectionHandlingPolicy.CheckTimeoutsResult SESSION_TIMEOUT
handle a session timeout
-
-
Method Detail
-
values
public static ConnectionHandlingPolicy.CheckTimeoutsResult[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConnectionHandlingPolicy.CheckTimeoutsResult c : ConnectionHandlingPolicy.CheckTimeoutsResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConnectionHandlingPolicy.CheckTimeoutsResult valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-