Package com.mongodb
Class ReadConcern
java.lang.Object
com.mongodb.ReadConcern
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A read concern allows clients to choose a level of isolation for their reads.
- Since:
- 3.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReadConcern
Deprecated.The available read concern.static final ReadConcern
Deprecated.Use the servers default read concern.static final ReadConcern
Deprecated.The linearizable read concern.static final ReadConcern
Deprecated.The local read concern.static final ReadConcern
Deprecated.The majority read concern.static final ReadConcern
Deprecated.The snapshot read concern. -
Constructor Summary
ConstructorsConstructorDescriptionReadConcern
(ReadConcernLevel level) Deprecated.Construct a new read concern -
Method Summary
-
Field Details
-
DEFAULT
Deprecated.Use the servers default read concern. -
LOCAL
Deprecated.The local read concern. -
MAJORITY
Deprecated.The majority read concern. -
LINEARIZABLE
Deprecated.The linearizable read concern.This read concern is only compatible with
ReadPreference.primary()
.- Since:
- 3.4
-
SNAPSHOT
Deprecated.The snapshot read concern.- Since:
- 3.8
-
AVAILABLE
Deprecated.The available read concern.- Since:
- 3.9
-
-
Constructor Details
-
ReadConcern
Deprecated.Construct a new read concern- Parameters:
level
- the read concern level
-
-
Method Details
-
getLevel
Deprecated.Gets the read concern level.- Returns:
- the read concern level, which may be null (which indicates to use the server's default level)
- Since:
- 3.6
-
isServerDefault
public boolean isServerDefault()Deprecated.- Returns:
- true if this is the server default read concern
-
asDocument
Deprecated.Gets this read concern as a document.- Returns:
- The read concern as a BsonDocument
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-