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
|
ReadConcern |
getReadConcern()
Gets the read concern to apply to operations on this binding.
|
BsonDocument |
getSessionId()
Gets the session identifier if this context has a session backing it.
|
long |
getTransactionNumber()
Gets the current transaction number.
|
boolean |
hasActiveTransaction()
Gets whether the session has an active transaction
|
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 |
isImplicitSession()
Returns true if the session is implicit, and false if the application started the session explicity.
|
boolean |
notifyMessageSent()
Notify the session context that a message has been sent.
|
boolean hasSession()
boolean isImplicitSession()
BsonDocument getSessionId()
boolean isCausallyConsistent()
long getTransactionNumber()
long advanceTransactionNumber()
boolean notifyMessageSent()
BsonTimestamp getOperationTime()
void advanceOperationTime(BsonTimestamp operationTime)
operationTime
- the new operation time timeBsonDocument getClusterTime()
void advanceClusterTime(BsonDocument clusterTime)
clusterTime
- the new cluster timeboolean hasActiveTransaction()
ReadConcern getReadConcern()
Copyright © 2010 - 2020 Adobe. All Rights Reserved