AutoCloseable, ClientSession, Closeablepublic interface ClientSession extends ClientSession
| Modifier and Type | Method | Description |
|---|---|---|
void |
abortTransaction(SingleResultCallback<Void> callback) |
Abort a transaction in the context of this session.
|
void |
commitTransaction(SingleResultCallback<Void> callback) |
Commit a transaction in the context of this session.
|
TransactionOptions |
getTransactionOptions() |
Gets the transaction options.
|
boolean |
hasActiveTransaction() |
Returns true if there is an active transaction on this session, and false otherwise
|
boolean |
notifyMessageSent() |
Notify the client session that a message has been sent.
|
void |
startTransaction() |
Start a transaction in the context of this session with default transaction options.
|
void |
startTransaction(TransactionOptions transactionOptions) |
Start a transaction in the context of this session with the given transaction options.
|
advanceClusterTime, advanceOperationTime, close, getClusterTime, getOperationTime, getOptions, getOriginator, getServerSession, isCausallyConsistentboolean hasActiveTransaction()
boolean notifyMessageSent()
For internal use only
TransactionOptions getTransactionOptions()
void startTransaction()
void startTransaction(TransactionOptions transactionOptions)
transactionOptions - the options to apply to the transactionvoid commitTransaction(SingleResultCallback<Void> callback)
callback - the result callbackvoid abortTransaction(SingleResultCallback<Void> callback)
callback - the result callback