public enum CuratorFrameworkState extends java.lang.Enum<CuratorFrameworkState>
CuratorFramework.getState()| Enum Constant | 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 | Description |
|---|---|---|
static CuratorFrameworkState |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.