public interface ClientSession
extends com.mongodb.session.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.
|
com.mongodb.TransactionOptions |
getTransactionOptions()
Gets the transaction options.
|
com.mongodb.async.client.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(com.mongodb.TransactionOptions transactionOptions)
Start a transaction in the context of this session with the given transaction options.
|
boolean hasActiveTransaction()
com.mongodb.TransactionOptions getTransactionOptions()
com.mongodb.async.client.ClientSession getWrapped()
void startTransaction()
void startTransaction(com.mongodb.TransactionOptions transactionOptions)
transactionOptions
- the options to apply to the transactionorg.reactivestreams.Publisher<Void> commitTransaction()
org.reactivestreams.Publisher<Void> abortTransaction()