public interface ClientSession extends ClientSession
| Modifier and Type | Method and Description |
|---|---|
void |
abortTransaction()
Abort a transaction in the context of this session.
|
void |
commitTransaction()
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
|
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()
TransactionOptions getTransactionOptions()
void startTransaction()
void startTransaction(TransactionOptions transactionOptions)
transactionOptions - the options to apply to the transactionvoid commitTransaction()
void abortTransaction()