Package com.mongodb
Class ClientSessionOptions.Builder
java.lang.Object
com.mongodb.ClientSessionOptions.Builder
- Enclosing class:
ClientSessionOptions
@NotThreadSafe
@Deprecated(since="2021-05-27")
public static final class ClientSessionOptions.Builder
extends Object
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A builder for instances of
ClientSession
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated.Build the session options instance.causallyConsistent
(boolean causallyConsistent) Deprecated.Sets whether operations using the session should causally consistent with each other.defaultTransactionOptions
(TransactionOptions defaultTransactionOptions) Deprecated.Sets whether operations using the session should causally consistent with each other.
-
Method Details
-
causallyConsistent
Deprecated.Sets whether operations using the session should causally consistent with each other.- Parameters:
causallyConsistent
- whether operations using the session should be causally consistent- Returns:
- this
-
defaultTransactionOptions
public ClientSessionOptions.Builder defaultTransactionOptions(TransactionOptions defaultTransactionOptions) Deprecated.Sets whether operations using the session should causally consistent with each other.- Parameters:
defaultTransactionOptions
- the default transaction options to use for all transactions on this session,- Returns:
- this
- Since:
- 3.8
-
build
Deprecated.Build the session options instance.- Returns:
- The
ClientSessionOptions
-