Interface LoadBalancerObserver.Host

Enclosing interface:
LoadBalancerObserver

public static interface LoadBalancerObserver.Host
A description of a host.
  • Method Summary

    Modifier and Type
    Method
    Description
    The address of the host.
    boolean
    Determine the health status of this host.
    double
    The weight of the host, relative to the weights of associated hosts as used for load balancing.
  • Method Details

    • address

      Object address()
      The address of the host.
      Returns:
      the address of the host.
    • isHealthy

      boolean isHealthy()
      Determine the health status of this host.
      Returns:
      whether the host considers itself healthy enough to serve traffic. This is best effort and does not guarantee that the request will succeed.
    • weight

      double weight()
      The weight of the host, relative to the weights of associated hosts as used for load balancing.
      Returns:
      the relative weight of the host.