Interface PersistedJobStatusObserver

  • All Known Implementing Classes:
    PersistedJobStatusObserverImpl

    public interface PersistedJobStatusObserver
    Interface for an observer that gets notified of job 'status' change after the latter is persisted. This observer is invoked as callback during data/persistence methods. It should NOT spend significant time processing.
    Since:
    4.0.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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.
    • Method Detail

      • notify

        void notify​(java.lang.String jobId,
                    @Nullable
                    JobStatus previousStatus,
                    JobStatus currentStatus)
        Handle a notification of job status change after the latter was successfully committed to persistent storage.
        Parameters:
        jobId - the job unique id
        previousStatus - the previous job status, or null if this job was just created and persisted
        currentStatus - the job status that was just persisted. Guaranteed to be different than the previous.