枚举 CuratorFrameworkParams
- java.lang.Object
-
- java.lang.Enum<CuratorFrameworkParams>
-
- org.apache.dubbo.registry.zookeeper.util.CuratorFrameworkParams
-
- 所有已实现的接口:
Serializable,Comparable<CuratorFrameworkParams>
public enum CuratorFrameworkParams extends Enum<CuratorFrameworkParams>
The enumeration for the parameters ofCuratorFramework- 从以下版本开始:
- 2.7.5
- 另请参阅:
CuratorFramework
-
-
枚举常量概要
枚举常量 枚举常量 说明 BASE_SLEEP_TIMEInitial amount of time to wait between retriesBLOCK_UNTIL_CONNECTED_UNITThe unit of time related to blocking on connection to Zookeeper.BLOCK_UNTIL_CONNECTED_WAITWait time to block on connection to Zookeeper.INSTANCE_HOSTThe host of currentservice instancethat will be registeredINSTANCE_PORTThe port of currentservice instancethat will be registeredMAX_RETRIESMax number of times to retry.MAX_SLEEPMax time in ms to sleep on each retry.ROOT_PATHThe root path of Dubbo Service
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 <T> TgetParameterValue(URL url)Get the parameter value from the specifiedURLstatic CuratorFrameworkParamsvalueOf(String name)返回带有指定名称的该类型的枚举常量。static CuratorFrameworkParams[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
-
-
枚举常量详细资料
-
ROOT_PATH
public static final CuratorFrameworkParams ROOT_PATH
The root path of Dubbo Service
-
INSTANCE_HOST
public static final CuratorFrameworkParams INSTANCE_HOST
The host of currentservice instancethat will be registered
-
INSTANCE_PORT
public static final CuratorFrameworkParams INSTANCE_PORT
The port of currentservice instancethat will be registered
-
BASE_SLEEP_TIME
public static final CuratorFrameworkParams BASE_SLEEP_TIME
Initial amount of time to wait between retries
-
MAX_RETRIES
public static final CuratorFrameworkParams MAX_RETRIES
Max number of times to retry.
-
MAX_SLEEP
public static final CuratorFrameworkParams MAX_SLEEP
Max time in ms to sleep on each retry.
-
BLOCK_UNTIL_CONNECTED_WAIT
public static final CuratorFrameworkParams BLOCK_UNTIL_CONNECTED_WAIT
Wait time to block on connection to Zookeeper.
-
BLOCK_UNTIL_CONNECTED_UNIT
public static final CuratorFrameworkParams BLOCK_UNTIL_CONNECTED_UNIT
The unit of time related to blocking on connection to Zookeeper.
-
-
方法详细资料
-
values
public static CuratorFrameworkParams[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (CuratorFrameworkParams c : CuratorFrameworkParams.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static CuratorFrameworkParams valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
-