public interface PersistedJobStatusObserver
Modifier and Type | Method and Description |
---|---|
void |
notify(java.lang.String jobId,
JobStatus previousStatus,
JobStatus currentStatus)
Handle a notification of job status change after the latter was successfully committed to persistent storage.
|
void notify(java.lang.String jobId, @Nullable JobStatus previousStatus, JobStatus currentStatus)
jobId
- the job unique idpreviousStatus
- the previous job status, or null if this job was just created and persistedcurrentStatus
- the job status that was just persisted. Guaranteed to be different than the previous.