Package com.mongodb.internal.connection
Class ReadConcernAwareNoOpSessionContext
- java.lang.Object
-
- com.mongodb.internal.connection.NoOpSessionContext
-
- com.mongodb.internal.connection.ReadConcernAwareNoOpSessionContext
-
- All Implemented Interfaces:
SessionContext
@Deprecated(since="2021-05-27") public final class ReadConcernAwareNoOpSessionContext extends NoOpSessionContext
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.A SessionContext implementation that does nothing and reports that it has no session, but does track read concern.This class should not be considered a part of the public API.
-
-
Field Summary
-
Fields inherited from class com.mongodb.internal.connection.NoOpSessionContext
INSTANCE
-
-
Constructor Summary
Constructors Constructor Description ReadConcernAwareNoOpSessionContext(ReadConcern readConcern)
Deprecated.Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ReadConcern
getReadConcern()
Deprecated.Gets the read concern to apply to operations on this binding.-
Methods inherited from class com.mongodb.internal.connection.NoOpSessionContext
advanceClusterTime, advanceOperationTime, advanceTransactionNumber, getClusterTime, getOperationTime, getSessionId, getTransactionNumber, hasActiveTransaction, hasSession, isCausallyConsistent, isImplicitSession, isSessionMarkedDirty, markSessionDirty, notifyMessageSent, setRecoveryToken, unpinServerAddress
-
-
-
-
Constructor Detail
-
ReadConcernAwareNoOpSessionContext
public ReadConcernAwareNoOpSessionContext(ReadConcern readConcern)
Deprecated.Construct an instance.- Parameters:
readConcern
- the read concern
-
-
Method Detail
-
getReadConcern
public ReadConcern getReadConcern()
Deprecated.Description copied from interface:SessionContext
Gets the read concern to apply to operations on this binding.- Specified by:
getReadConcern
in interfaceSessionContext
- Overrides:
getReadConcern
in classNoOpSessionContext
- Returns:
- the read concern to apply to operations on this binding
-
-