Interface IJobChangeListener

    • Method Detail

      • aboutToRun

        void aboutToRun​(IJobChangeEvent event)
        Notification that a job is about to be run. Listeners are allowed to sleep, cancel, or change the priority of the job before it is started (and as a result may prevent the run from actually occurring).
        Parameters:
        event - the event details
      • awake

        void awake​(IJobChangeEvent event)
        Notification that a job was previously sleeping and has now been rescheduled to run.
        Parameters:
        event - the event details
      • done

        void done​(IJobChangeEvent event)
        Notification that a job has completed execution, either due to cancelation, successful completion, or failure. The event status object indicates how the job finished, and the reason for failure, if applicable.
        Parameters:
        event - the event details
      • running

        void running​(IJobChangeEvent event)
        Notification that a job has started running.
        Parameters:
        event - the event details
      • scheduled

        void scheduled​(IJobChangeEvent event)
        Notification that a job is being added to the queue of scheduled jobs. The event details includes the scheduling delay before the job should start running.
        Parameters:
        event - the event details, including the job instance and the scheduling delay
      • sleeping

        void sleeping​(IJobChangeEvent event)
        Notification that a job was waiting to run and has now been put in the sleeping state.
        Parameters:
        event - the event details