public enum CuratorFrameworkParams extends Enum<CuratorFrameworkParams>
CuratorFrameworkCuratorFramework| 枚举常量和说明 |
|---|
BASE_SLEEP_TIME
Initial amount of time to wait between retries
|
BLOCK_UNTIL_CONNECTED_UNIT
The unit of time related to blocking on connection to Zookeeper.
|
BLOCK_UNTIL_CONNECTED_WAIT
Wait time to block on connection to Zookeeper.
|
INSTANCE_HOST
The host of current
service instance that will be registered |
INSTANCE_PORT
The port of current
service instance that will be registered |
MAX_RETRIES
Max number of times to retry.
|
MAX_SLEEP
Max time in ms to sleep on each retry.
|
ROOT_PATH
The root path of Dubbo Service
|
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
getParameterValue(org.apache.dubbo.common.URL url)
Get the parameter value from the specified
URL |
static CuratorFrameworkParams |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static CuratorFrameworkParams[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final CuratorFrameworkParams ROOT_PATH
public static final CuratorFrameworkParams INSTANCE_HOST
service instance that will be registeredpublic static final CuratorFrameworkParams INSTANCE_PORT
service instance that will be registeredpublic static final CuratorFrameworkParams BASE_SLEEP_TIME
public static final CuratorFrameworkParams MAX_RETRIES
public static final CuratorFrameworkParams MAX_SLEEP
public static final CuratorFrameworkParams BLOCK_UNTIL_CONNECTED_WAIT
public static final CuratorFrameworkParams BLOCK_UNTIL_CONNECTED_UNIT
public static CuratorFrameworkParams[] values()
for (CuratorFrameworkParams c : CuratorFrameworkParams.values()) System.out.println(c);
public static CuratorFrameworkParams valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public <T> T getParameterValue(org.apache.dubbo.common.URL url)
URLT - the type of valueurl - the Dubbo registry URLnullCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.