Package com.mongodb.operation
Class TransactionOperation
-
- com.mongodb.operation.TransactionOperation
-
- All Implemented Interfaces:
>
,>
- Direct Known Subclasses:
AbortTransactionOperation
,CommitTransactionOperation
public abstract class TransactionOperation extends implements >, >
Deprecated.A base class for transaction-related operations- Since:
- 3.8
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description execute(WriteBinding binding)
Deprecated.General execute which can return anything of type Tvoid
executeAsync(AsyncWriteBinding binding, > callback)
Deprecated.General execute which can return anything of type Tprotected abstract
getCommandName()
Deprecated.Gets the command name.protected abstract Function<BsonDocument,BsonDocument>
getRetryCommandModifier()
Deprecated.WriteConcern
getWriteConcern()
Deprecated.Gets the write concern.
-
-
-
Method Detail
-
getWriteConcern
public WriteConcern getWriteConcern()
Deprecated.Gets the write concern.- Returns:
- the write concern
-
execute
public execute(WriteBinding binding)
Deprecated.Description copied from interface:WriteOperation
General execute which can return anything of type T- Specified by:
>
- Parameters:
binding
- the binding to execute in the context of- Returns:
- T, the result of the execution
-
executeAsync
public void executeAsync(AsyncWriteBinding binding, > callback)
Deprecated.Description copied from interface:AsyncWriteOperation
General execute which can return anything of type T- Specified by:
>
- Parameters:
binding
- the binding to execute in the context ofcallback
- the callback to be called when the operation has been executed
-
getCommandName
protected abstract getCommandName()
Deprecated.Gets the command name.- Returns:
- the command name
-
getRetryCommandModifier
protected abstract Function<BsonDocument,BsonDocument> getRetryCommandModifier()
Deprecated.
-
-