Interface TransactionalClientSession

All Superinterfaces:
AutoCloseable, com.mongodb.client.ClientSession, com.mongodb.session.ClientSession, Closeable

@EachBean(MongoSynchronousTransactionManagerImpl.class) @Internal public interface TransactionalClientSession extends com.mongodb.client.ClientSession
Allows injecting a ClientSession instance as a bean with any methods invoked on the connection being delegated to connection bound to the current transaction.
Since:
3.3
Author:
Denis Stepanov
  • Method Summary

    Methods inherited from interface com.mongodb.client.ClientSession

    abortTransaction, commitTransaction, getPinnedServerAddress, getTransactionOptions, hasActiveTransaction, notifyMessageSent, notifyOperationInitiated, startTransaction, startTransaction, withTransaction, withTransaction

    Methods inherited from interface com.mongodb.session.ClientSession

    advanceClusterTime, advanceOperationTime, clearTransactionContext, close, getClusterTime, getOperationTime, getOptions, getOriginator, getRecoveryToken, getServerSession, getSnapshotTimestamp, getTransactionContext, isCausallyConsistent, setRecoveryToken, setSnapshotTimestamp, setTransactionContext