Interface FailureListener


public interface FailureListener
Failure Listener invoked by a HealthMonitorable component.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked when the health status becomes unhealthy.
    void
    Invoked when health status becomes healthy after being unhealthy for some time.
    void
    Invoked when the health status becomes dead and the system can't become healthy again without external intervention.
  • Method Details

    • onFailure

      void onFailure(HealthReport report)
      Invoked when the health status becomes unhealthy.
    • onRecovered

      void onRecovered()
      Invoked when health status becomes healthy after being unhealthy for some time. A component can be marked unhealthy initially and set to healthy only after start up is complete. It is expected to call {#onRecovered} when it is marked as healthy.
    • onUnrecoverableFailure

      void onUnrecoverableFailure(HealthReport report)
      Invoked when the health status becomes dead and the system can't become healthy again without external intervention.