@Immutable public final class ClientSessionOptions extends Object
ClientSession
.ClientSession
,
MongoClient.startSession(ClientSessionOptions)
Modifier and Type | Class and Description |
---|---|
static class |
ClientSessionOptions.Builder
A builder for instances of
ClientSession |
Modifier and Type | Method and Description |
---|---|
static ClientSessionOptions.Builder |
builder()
Gets an instance of a builder
|
BsonDocument |
getInitialClusterTime()
Gets the initial cluster time to apply to the client session
|
BsonTimestamp |
getInitialOperationTime()
Gets the initial operation time to apply to the client session
|
Boolean |
isCausallyConsistent()
Whether operations using the session should causally consistent with each other.
|
public Boolean isCausallyConsistent()
public BsonDocument getInitialClusterTime()
public BsonTimestamp getInitialOperationTime()
public static ClientSessionOptions.Builder builder()