public interface SessionContext
Modifier and Type | Method and Description |
---|---|
void |
advanceClusterTime(BsonDocument clusterTime)
Advance the cluster time.
|
void |
advanceOperationTime(BsonTimestamp operationTime)
Advance the operation time.
|
long |
advanceTransactionNumber()
Advance the transaction number.
|
BsonDocument |
getClusterTime()
Gets the current cluster time for this session context.
|
BsonTimestamp |
getOperationTime()
Gets the current operation time for this session context
|
BsonDocument |
getSessionId()
Gets the session identifier if this context has a session backing it.
|
boolean |
hasSession()
Returns true if there is a true server session associated with this context.
|
boolean |
isCausallyConsistent()
Gets whether this context is associated with a causally consistent session.
|
boolean hasSession()
BsonDocument getSessionId()
boolean isCausallyConsistent()
long advanceTransactionNumber()
BsonTimestamp getOperationTime()
void advanceOperationTime(BsonTimestamp operationTime)
operationTime
- the new operation time timeBsonDocument getClusterTime()
void advanceClusterTime(BsonDocument clusterTime)
clusterTime
- the new cluster time