public final class ReadConcern
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static ReadConcern |
DEFAULT
Use the servers default read concern.
|
static ReadConcern |
LOCAL
Return the node's most recent copy of data.
|
static ReadConcern |
MAJORITY
Return the node's most recent copy of the data confirmed as having been written to a majority of the nodes.
|
| 构造器和说明 |
|---|
ReadConcern(ReadConcernLevel readConcernLevel)
Construct a new read concern
|
| 限定符和类型 | 方法和说明 |
|---|---|
BsonDocument |
asDocument()
Gets this read concern as a document.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isServerDefault() |
public static final ReadConcern DEFAULT
public static final ReadConcern LOCAL
public static final ReadConcern MAJORITY
public ReadConcern(ReadConcernLevel readConcernLevel)
readConcernLevel - the read concern levelpublic boolean isServerDefault()
public BsonDocument asDocument()
public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Object