@NotThreadSafe public static final class ClientSessionOptions.Builder extends Object
ClientSession
Modifier and Type | Method and Description |
---|---|
ClientSessionOptions |
build()
Build the session options instance.
|
ClientSessionOptions.Builder |
causallyConsistent(boolean causallyConsistent)
Sets whether operations using the session should causally consistent with each other.
|
ClientSessionOptions.Builder |
initialClusterTime(BsonDocument initialClusterTime)
Sets the initial cluster time to apply to the client session
|
ClientSessionOptions.Builder |
initialOperationTime(BsonTimestamp initialOperationTime)
Gets the initial operation time to apply to the client session
|
public ClientSessionOptions.Builder causallyConsistent(boolean causallyConsistent)
causallyConsistent
- whether operations using the session should be causally consistentpublic ClientSessionOptions.Builder initialClusterTime(BsonDocument initialClusterTime)
initialClusterTime
- the initial cluster time, which may be nullpublic ClientSessionOptions.Builder initialOperationTime(BsonTimestamp initialOperationTime)
initialOperationTime
- the initial operation time, which may be nullpublic ClientSessionOptions build()
ClientSessionOptions