public static enum ZooKeeperClientFactory.SessionType extends Enum<ZooKeeperClientFactory.SessionType>
| Enum Constant and Description |
|---|
AllowReadOnly
Create a ZK session that allow the client to stay connected (in read only mode) to a ZK server that has lost
the quorum
|
ReadWrite
Create a normal ZK session that requires a valid quorum
|
| Modifier and Type | Method and Description |
|---|---|
static ZooKeeperClientFactory.SessionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ZooKeeperClientFactory.SessionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZooKeeperClientFactory.SessionType ReadWrite
public static final ZooKeeperClientFactory.SessionType AllowReadOnly
public static ZooKeeperClientFactory.SessionType[] values()
for (ZooKeeperClientFactory.SessionType c : ZooKeeperClientFactory.SessionType.values()) System.out.println(c);
public static ZooKeeperClientFactory.SessionType 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 © 2017–2021 Apache Software Foundation. All rights reserved.