public enum ReadConcernLevel extends java.lang.Enum<ReadConcernLevel>
| 枚举常量和说明 |
|---|
LOCAL
Return the node's most recent copy of data.
|
MAJORITY
Return the node's most recent copy of the data confirmed as having been written to a majority of the nodes.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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)
返回带有指定名称的该类型的枚举常量。
|
static ReadConcernLevel[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ReadConcernLevel LOCAL
public static final ReadConcernLevel MAJORITY
public static ReadConcernLevel[] values()
for (ReadConcernLevel c : ReadConcernLevel.values()) System.out.println(c);
public static ReadConcernLevel valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public java.lang.String getValue()
public static ReadConcernLevel fromString(java.lang.String readConcernLevel)
readConcernLevel - the read concern level string.