public enum CuratorFrameworkState extends Enum<CuratorFrameworkState>
CuratorFramework.getState()| Enum Constant and Description |
|---|
LATENT
CuratorFramework.start() has not yet been called |
STARTED
CuratorFramework.start() has been called |
STOPPED
CuratorFramework.close() has been called |
| Modifier and Type | Method and Description |
|---|---|
static CuratorFrameworkState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CuratorFrameworkState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CuratorFrameworkState LATENT
CuratorFramework.start() has not yet been calledpublic static final CuratorFrameworkState STARTED
CuratorFramework.start() has been calledpublic static final CuratorFrameworkState STOPPED
CuratorFramework.close() has been calledpublic static CuratorFrameworkState[] values()
for (CuratorFrameworkState c : CuratorFrameworkState.values()) System.out.println(c);
public static CuratorFrameworkState 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 nullCopyright © 2011-2014 The Apache Software Foundation. All Rights Reserved.