Class TransactionOperation

java.lang.Object
com.mongodb.operation.TransactionOperation
All Implemented Interfaces:
AsyncWriteOperation<Void>, WriteOperation<Void>
Direct Known Subclasses:
AbortTransactionOperation, CommitTransactionOperation

@Deprecated public abstract class TransactionOperation extends Object implements WriteOperation<Void>, AsyncWriteOperation<Void>
Deprecated.
A base class for transaction-related operations
Since:
3.8
  • Method Details

    • getWriteConcern

      public WriteConcern getWriteConcern()
      Deprecated.
      Gets the write concern.
      Returns:
      the write concern
    • execute

      public Void execute(WriteBinding binding)
      Deprecated.
      Description copied from interface: WriteOperation
      General execute which can return anything of type T
      Specified by:
      execute in interface WriteOperation<Void>
      Parameters:
      binding - the binding to execute in the context of
      Returns:
      T, the result of the execution
    • executeAsync

      public void executeAsync(AsyncWriteBinding binding, SingleResultCallback<Void> callback)
      Deprecated.
      Description copied from interface: AsyncWriteOperation
      General execute which can return anything of type T
      Specified by:
      executeAsync in interface AsyncWriteOperation<Void>
      Parameters:
      binding - the binding to execute in the context of
      callback - the callback to be called when the operation has been executed