Package com.mongodb.operation
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 Summary
Modifier and TypeMethodDescriptionexecute(WriteBinding binding) Deprecated.General execute which can return anything of type TvoidexecuteAsync(AsyncWriteBinding binding, SingleResultCallback<Void> callback) Deprecated.General execute which can return anything of type TDeprecated.Gets the write concern.
-
Method Details
-
getWriteConcern
Deprecated.Gets the write concern.- Returns:
- the write concern
-
execute
Deprecated.Description copied from interface:WriteOperationGeneral execute which can return anything of type T- Specified by:
executein interfaceWriteOperation<Void>- Parameters:
binding- the binding to execute in the context of- Returns:
- T, the result of the execution
-
executeAsync
Deprecated.Description copied from interface:AsyncWriteOperationGeneral execute which can return anything of type T- Specified by:
executeAsyncin interfaceAsyncWriteOperation<Void>- Parameters:
binding- the binding to execute in the context ofcallback- the callback to be called when the operation has been executed
-