Interface OptimisticLockingListener
-
- All Known Implementing Classes:
AbstractBatchJobHandler,AcquireJobsCmd,BatchSetRemovalTimeJobHandler,BatchSetVariablesHandler,DecisionSetRemovalTimeJobHandler,DeleteHistoricDecisionInstancesJobHandler,DeleteHistoricProcessInstancesJobHandler,DeleteProcessInstancesJobHandler,MessageCorrelationBatchJobHandler,MigrationBatchJobHandler,ModificationBatchJobHandler,ProcessSetRemovalTimeJobHandler,RestartProcessInstancesJobHandler,SetExternalTaskRetriesJobHandler,SetJobRetriesJobHandler,UpdateProcessInstancesSuspendStateJobHandler
public interface OptimisticLockingListenerAllows registering a listener which is notified when anDbOperationType.UPDATEorDbOperationType.DELETEcould not be performed.- Author:
- Daniel Meyer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OptimisticLockingResultfailedOperation(DbOperation operation)Signifies that an operation failed due to optimistic locking.Class<? extends DbEntity>getEntityType()The type of the entity for which this listener should be notified.
-
-
-
Method Detail
-
getEntityType
Class<? extends DbEntity> getEntityType()
The type of the entity for which this listener should be notified. If the implementation returns 'null', the listener is notified for all entity types.- Returns:
- the entity type for which the listener should be notified.
-
failedOperation
OptimisticLockingResult failedOperation(DbOperation operation)
Signifies that an operation failed due to optimistic locking.- Parameters:
operation- the failed operation.- Returns:
OptimisticLockingResultthat instructs the caller how to handle the result of the failed operation.
-
-