public static enum ConnectionHandlingPolicy.CheckTimeoutsResult extends Enum<ConnectionHandlingPolicy.CheckTimeoutsResult>
Enum Constant and Description |
---|
CONNECTION_TIMEOUT
handle a connection timeout
|
NEW_CONNECTION_STRING
handle a new connection string
|
NOP
Do nothing
|
RESET_CONNECTION
reset/recreate the internal ZooKeeper connection
|
SESSION_TIMEOUT
handle a session timeout
|
Modifier and Type | Method and Description |
---|---|
static ConnectionHandlingPolicy.CheckTimeoutsResult |
valueOf(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.
|
public static final ConnectionHandlingPolicy.CheckTimeoutsResult NOP
public static final ConnectionHandlingPolicy.CheckTimeoutsResult NEW_CONNECTION_STRING
public static final ConnectionHandlingPolicy.CheckTimeoutsResult RESET_CONNECTION
public static final ConnectionHandlingPolicy.CheckTimeoutsResult CONNECTION_TIMEOUT
public static final ConnectionHandlingPolicy.CheckTimeoutsResult SESSION_TIMEOUT
public static ConnectionHandlingPolicy.CheckTimeoutsResult[] values()
for (ConnectionHandlingPolicy.CheckTimeoutsResult c : ConnectionHandlingPolicy.CheckTimeoutsResult.values()) System.out.println(c);
public static ConnectionHandlingPolicy.CheckTimeoutsResult valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2011–2017 The Apache Software Foundation. All rights reserved.