public enum AccessMode extends Enum<AccessMode>
AccessMode will be ignored while running transactions via a driver towards a single server.
As the single server serves both read and write operations at the same time.| Enum Constant and Description |
|---|
READ
Use this for transactions that requires a read server in a cluster
|
WRITE
Use this for transactions that requires a write server in a cluster
|
| Modifier and Type | Method and Description |
|---|---|
static AccessMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessMode READ
public static final AccessMode WRITE
public static AccessMode[] values()
for (AccessMode c : AccessMode.values()) System.out.println(c);
public static AccessMode 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 © 2018. All rights reserved.