Interface JobStatusListener

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface JobStatusListener
Invoked upon job status change.
  1. This listener observes that the status is transitioned to SUSPENDED/FAILED upon job suspension/termination, NOT_RUNNING upon job resume/restart, and SUSPENDED_EXPORTING_SNAPSHOT upon exporting snapshot, all of which are reported as user-initiated. Other transitions, such as from NOT_RUNNING to STARTING or from STARTING to RUNNING, are not reported as user-initiated.
  2. This listener is not notified for COMPLETING status and observes that the status is transitioned from RUNNING to FAILED upon job termination.
  3. This listener is automatically deregistered after a terminal event.
Since:
5.3
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked upon job status change.