public enum CuratorFrameworkParams extends Enum<CuratorFrameworkParams>
CuratorFrameworkCuratorFramework| Enum Constant and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getParameterValue(org.apache.dubbo.common.URL url)
Get the parameter value from the specified
URL |
static CuratorFrameworkParams |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CuratorFrameworkParams[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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 - 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 nullpublic <T> T getParameterValue(org.apache.dubbo.common.URL url)
URLT - the type of valueurl - the Dubbo registry URLnullCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.