public class NullOperationRecorder extends Object implements CompensatingTransactionOperationRecorder
CompensatingTransactionOperationRecorder
performing nothing,
returning a NullOperationExecutor
regardless of the input. Instances
of this class will be created if the
CompensatingTransactionOperationManager
cannot determine any
appropriate CompensatingTransactionOperationRecorder
for the current
operation.Constructor and Description |
---|
NullOperationRecorder() |
Modifier and Type | Method and Description |
---|---|
CompensatingTransactionOperationExecutor |
recordOperation(Object[] args)
Record information about the operation performed and return a
corresponding
CompensatingTransactionOperationExecutor to be used
if the operation would need to be rolled back. |
public CompensatingTransactionOperationExecutor recordOperation(Object[] args)
CompensatingTransactionOperationRecorder
CompensatingTransactionOperationExecutor
to be used
if the operation would need to be rolled back.recordOperation
in interface CompensatingTransactionOperationRecorder
args
- The arguments that have been sent to the operation.CompensatingTransactionOperationExecutor
to be used if
the recorded operation should need to be rolled back.