public abstract class TransactionOperation extends java.lang.Object implements ReadOperation<java.lang.Void>
Modifier | Constructor and Description |
---|---|
protected |
TransactionOperation(WriteConcern writeConcern)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Void |
execute(ReadBinding binding)
General execute which can return anything of type T
|
protected abstract java.lang.String |
getCommandName()
Gets the command name.
|
WriteConcern |
getWriteConcern()
Gets the write concern.
|
protected TransactionOperation(WriteConcern writeConcern)
writeConcern
- the write concernpublic WriteConcern getWriteConcern()
public java.lang.Void execute(ReadBinding binding)
ReadOperation
execute
in interface ReadOperation<java.lang.Void>
binding
- the binding to execute in the context ofprotected abstract java.lang.String getCommandName()