public enum ReadConcernLevel extends java.lang.Enum<ReadConcernLevel>
| Enum Constant and Description |
|---|
AVAILABLE
The available read concern level.
|
LINEARIZABLE
The linearizable read concern level.
|
LOCAL
The local read concern level.
|
MAJORITY
The majority read concern level.
|
SNAPSHOT
The snapshot read concern level.
|
| Modifier and Type | Method and Description |
|---|---|
static ReadConcernLevel |
fromString(java.lang.String readConcernLevel)
Returns the ReadConcern from the string read concern level.
|
java.lang.String |
getValue() |
static ReadConcernLevel |
valueOf(java.lang.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 final ReadConcernLevel SNAPSHOT
public static final ReadConcernLevel AVAILABLE
public static ReadConcernLevel[] values()
for (ReadConcernLevel c : ReadConcernLevel.values()) System.out.println(c);
public static ReadConcernLevel 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 getValue()
public static ReadConcernLevel fromString(java.lang.String readConcernLevel)
readConcernLevel - the read concern level string.Copyright © 2010 - 2023 Adobe. All Rights Reserved