Package org.jobrunr.jobs.filters
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 aStorageProvider
. Altering the job will change the lifecycle of the job - an example of this is theRetryFilter
which updates jobs that are failed to scheduled again.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onStateElection(Job job, JobState newState)
-