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 a PartitionedStorageProvider. Altering the task will change the lifecycle of the task - an example of this is the RetryFilter which updates tasks that are failed to scheduled again. Every ElectStateFilter must also respect the allowed state changes. See AllowedTaskStateStateChanges for more info.
    • Method Detail

      • onStateElection

        void onStateElection​(Task task,
                             TaskState newState)