public class PersistedJobStatusObserverImpl extends java.lang.Object implements PersistedJobStatusObserver
Constructor and Description |
---|
PersistedJobStatusObserverImpl(GenieEventBus genieEventBus)
Constructor.
|
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.
|
public PersistedJobStatusObserverImpl(GenieEventBus genieEventBus)
genieEventBus
- the genie event buspublic void notify(java.lang.String jobId, @Nullable JobStatus previousStatus, JobStatus currentStatus)
notify
in interface PersistedJobStatusObserver
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.