public static enum ConnectionHandlingPolicy.CheckTimeoutsResult extends java.lang.Enum<ConnectionHandlingPolicy.CheckTimeoutsResult>
Enum Constant | 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 | 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.
|
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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.