public enum ReadConcernLevel extends Enum<ReadConcernLevel>
| Enum Constant and Description |
|---|
LINEARIZABLE
The linearizable read concern level.
|
LOCAL
The local read concern level.
|
MAJORITY
The majority read concern level.
|
| Modifier and Type | Method and Description |
|---|---|
static ReadConcernLevel |
fromString(String readConcernLevel)
Returns the ReadConcern from the string read concern level.
|
String |
getValue() |
static ReadConcernLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReadConcernLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReadConcernLevel LOCAL
public static final ReadConcernLevel MAJORITY
public static final ReadConcernLevel LINEARIZABLE
This read concern level is only compatible with ReadPreference.primary().
public static ReadConcernLevel[] values()
for (ReadConcernLevel c : ReadConcernLevel.values()) System.out.println(c);
public static ReadConcernLevel 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 nullpublic String getValue()
public static ReadConcernLevel fromString(String readConcernLevel)
readConcernLevel - the read concern level string.