Package org.jobrunr.jobs.filters
Interface ApplyStateFilter
- All Superinterfaces:
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 TypeMethodDescriptionvoid
onStateApplied
(Job job, JobState oldState, JobState newState)
-
Method Details
-
onStateApplied
- Parameters:
job
- the job in which to apply the filteroldState
- the previous state - can be nullnewState
- the new state
-