Interface LoadBalancerObserver.HostObserver

Enclosing interface:
LoadBalancerObserver

public static interface LoadBalancerObserver.HostObserver
An observer for Host events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onActiveHostRemoved(int connectionCount)
    Callback for when a host is removed by service discovery.
    void
    onExpiredHostRemoved(int connectionCount)
    Callback for when an expired host is removed.
    void
    onExpiredHostRevived(int connectionCount)
    Callback for when an expired host is returned to an active state.
    void
    onHostMarkedExpired(int connectionCount)
    Callback for when an active host is marked expired.
    void
    Callback for when a Host transitions from healthy to unhealthy.
    void
    Callback for when a Host transitions from unhealthy to healthy.
  • Method Details

    • onHostMarkedExpired

      void onHostMarkedExpired(int connectionCount)
      Callback for when an active host is marked expired.
      Parameters:
      connectionCount - the number of active connections for the host.
    • onActiveHostRemoved

      void onActiveHostRemoved(int connectionCount)
      Callback for when a host is removed by service discovery.
      Parameters:
      connectionCount - the number of open connections when the host was removed.
    • onExpiredHostRevived

      void onExpiredHostRevived(int connectionCount)
      Callback for when an expired host is returned to an active state.
      Parameters:
      connectionCount - the number of active connections when the host was revived.
    • onExpiredHostRemoved

      void onExpiredHostRemoved(int connectionCount)
      Callback for when an expired host is removed.
      Parameters:
      connectionCount - the number of open connections when the host was removed.
    • onHostMarkedUnhealthy

      void onHostMarkedUnhealthy(@Nullable Throwable cause)
      Callback for when a Host transitions from healthy to unhealthy.
      Parameters:
      cause - the most recent cause of the transition.
    • onHostRevived

      void onHostRevived()
      Callback for when a Host transitions from unhealthy to healthy.