public enum ReadConcern extends java.lang.Enum<ReadConcern>
| Enum Constant and Description |
|---|
AVAILABLE |
LINEARIZABLE |
LOCAL |
MAJORITY |
SNAPSHOT |
| Modifier and Type | Method and Description |
|---|---|
static ReadConcern |
fromString(java.lang.String name) |
java.lang.String |
toString() |
static ReadConcern |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReadConcern[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReadConcern LOCAL
public static final ReadConcern AVAILABLE
public static final ReadConcern MAJORITY
public static final ReadConcern LINEARIZABLE
public static final ReadConcern SNAPSHOT
public static ReadConcern[] values()
for (ReadConcern c : ReadConcern.values()) System.out.println(c);
public static ReadConcern 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 nullpublic java.lang.String toString()
toString in class java.lang.Enum<ReadConcern>public static ReadConcern fromString(java.lang.String name)