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 (except when the Job is deleted via the Dashboard). 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. Every ElectStateFilter must also respect the allowed state changes. See AllowedJobStateStateChanges for more info.
    • Method Detail

      • onStateElection

        void onStateElection​(Job job,
                             JobState newState)