Enum ZookeeperPropertyKey
- java.lang.Object
-
- java.lang.Enum<ZookeeperPropertyKey>
-
- org.apache.shardingsphere.mode.repository.cluster.zookeeper.props.ZookeeperPropertyKey
-
- All Implemented Interfaces:
Serializable,Comparable<ZookeeperPropertyKey>,org.apache.shardingsphere.infra.util.props.TypedPropertyKey
public enum ZookeeperPropertyKey extends Enum<ZookeeperPropertyKey> implements org.apache.shardingsphere.infra.util.props.TypedPropertyKey
Typed property key of Zookeeper.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIGESTZooKeeper client connection authorization schema name.MAX_RETRIESMax Retry times when connect with ZooKeeper curator client.OPERATION_TIMEOUT_MILLISECONDSZooKeeper client operation timeout value.RETRY_INTERVAL_MILLISECONDSRetry interval milliseconds when connect with ZooKeeper curator client.TIME_TO_LIVE_SECONDSZooKeeper client session timeout value.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ZookeeperPropertyKeyvalueOf(String name)Returns the enum constant of this type with the specified name.static ZookeeperPropertyKey[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RETRY_INTERVAL_MILLISECONDS
public static final ZookeeperPropertyKey RETRY_INTERVAL_MILLISECONDS
Retry interval milliseconds when connect with ZooKeeper curator client.
-
MAX_RETRIES
public static final ZookeeperPropertyKey MAX_RETRIES
Max Retry times when connect with ZooKeeper curator client.
-
TIME_TO_LIVE_SECONDS
public static final ZookeeperPropertyKey TIME_TO_LIVE_SECONDS
ZooKeeper client session timeout value.
-
OPERATION_TIMEOUT_MILLISECONDS
public static final ZookeeperPropertyKey OPERATION_TIMEOUT_MILLISECONDS
ZooKeeper client operation timeout value.
-
DIGEST
public static final ZookeeperPropertyKey DIGEST
ZooKeeper client connection authorization schema name.
-
-
Method Detail
-
values
public static ZookeeperPropertyKey[] 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 (ZookeeperPropertyKey c : ZookeeperPropertyKey.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZookeeperPropertyKey valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-