Interface ApplyStateFilter

  • All Superinterfaces:
    TaskFilter

    public interface ApplyStateFilter
    extends TaskFilter
    A filter that is triggered each time that the state of a task has changed (except when the Task is deleted via the Dashboard). Can be useful for adding extra logging, ... . This filter will be called after that the task has been saved to a PartitionedStorageProvider. Altering the task will not have any influence as it is not saved.
    • Method Detail

      • onStateApplied

        void onStateApplied​(Task task,
                            TaskState oldState,
                            TaskState newState)
        Parameters:
        task - the task in which to apply the filter
        oldState - the previous state - can be null
        newState - the new state