Interface ElectStateFilter

  • All Superinterfaces:
    JobFilter
    All Known Implementing Classes:
    RetryFilter

    public interface ElectStateFilter
    extends JobFilter
    A filter that is triggered each time that the state of a Job is changed. This filter will be called before that the job has been saved to a StorageProvider. Altering the job will change the lifecycle of the job - an example of this is the RetryFilter which updates jobs that are failed to scheduled again.
    • Method Detail

      • onStateElection

        void onStateElection​(Job job,
                             JobState newState)