public interface ClientSession extends ClientSession
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<Void> |
abortTransaction()
Abort a transaction in the context of this session.
|
org.reactivestreams.Publisher<Void> |
commitTransaction()
Commit a transaction in the context of this session.
|
TransactionOptions |
getTransactionOptions()
Gets the transaction options.
|
ClientSession |
getWrapped()
For internal use only.
|
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, isCausallyConsistent
boolean hasActiveTransaction()
TransactionOptions getTransactionOptions()
ClientSession getWrapped()
void startTransaction()
void startTransaction(TransactionOptions transactionOptions)
transactionOptions
- the options to apply to the transactionorg.reactivestreams.Publisher<Void> commitTransaction()
org.reactivestreams.Publisher<Void> abortTransaction()