Package io.servicetalk.loadbalancer
Interface LoadBalancerObserver.Host
- Enclosing interface:
- LoadBalancerObserver
public static interface LoadBalancerObserver.Host
A description of a host.
-
Method Summary
-
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.
-