Interface ElectStateFilter
-
- All Superinterfaces:
TaskFilter
- All Known Implementing Classes:
RetryFilter
public interface ElectStateFilter extends TaskFilter
A filter that is triggered each time that the state of a Task is changed (except when the Task is deleted via the Dashboard). This filter will be called before that the task has been saved to aPartitionedStorageProvider. Altering the task will change the lifecycle of the task - an example of this is theRetryFilterwhich updates tasks that are failed to scheduled again. EveryElectStateFiltermust also respect the allowed state changes. SeeAllowedTaskStateStateChangesfor more info.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonStateElection(Task task, TaskState newState)
-