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
ConstructorsConstructorDescriptionReadConcernAwareNoOpSessionContext
(ReadConcern readConcern) Deprecated.Construct an instance. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.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 Details
-
ReadConcernAwareNoOpSessionContext
Deprecated.Construct an instance.- Parameters:
readConcern
- the read concern
-
-
Method Details
-
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
-