Interface LoadBalancerReadyEvent


public interface LoadBalancerReadyEvent
A hint from LoadBalancer.eventStream() that the internal state of the LoadBalancer is ready such LoadBalancer.selectConnection(Predicate, ContextMap) is not likely to fail. Note that the return status of LoadBalancer.selectConnection(Predicate, ContextMap) may depend upon many factors including but not limited to:
  • Instantaneous demand vs the amount of resources (e.g. connections) on hand
  • If the LoadBalancer favors queuing requests or "fail fast" behavior
  • The dynamic nature of host availability may result in no hosts being available
This is meant to emphasize that isReady() returning true doesn't necessarily mean LoadBalancer.selectConnection(Predicate, ContextMap) will always return successfully.