Interface ApplyStateFilter

All Superinterfaces:
JobFilter

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

    Modifier and Type
    Method
    Description
    void
    onStateApplied(Job job, JobState oldState, JobState newState)
     
  • Method Details

    • onStateApplied

      void onStateApplied(Job job, JobState oldState, JobState newState)
      Parameters:
      job - the job in which to apply the filter
      oldState - the previous state - can be null
      newState - the new state