AutoCloseable
, ClientSession
, Closeable
public interface ClientSession extends ClientSession
Modifier and Type | Method | 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
|
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, isCausallyConsistent
boolean hasActiveTransactionโ()
boolean notifyMessageSentโ()
For internal use only
TransactionOptions getTransactionOptionsโ()
void startTransactionโ()
void startTransactionโ(TransactionOptions transactionOptions)
transactionOptions
- the options to apply to the transactionvoid commitTransactionโ()
void abortTransactionโ()