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. 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 Detail

      • 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