public interface LoadBalancerReadyEvent
LoadBalancer.eventStream()
that the internal state of the LoadBalancer
is ready such
LoadBalancer.selectConnection(Predicate)
is not likely to fail. Note that the return status of
LoadBalancer.selectConnection(Predicate)
may depend upon many factors including but not limited to:
LoadBalancer
favors queuing requests or "fail fast" behaviorisReady()
returning true
doesn't necessarily mean
LoadBalancer.selectConnection(Predicate)
will always return successfully.Modifier and Type | Field and Description |
---|---|
static LoadBalancerReadyEvent |
LOAD_BALANCER_NOT_READY_EVENT
|
static LoadBalancerReadyEvent |
LOAD_BALANCER_READY_EVENT
|
Modifier and Type | Method and Description |
---|---|
boolean |
isReady()
A hint which can be used to determine if the
LoadBalancer is "ready". |
static final LoadBalancerReadyEvent LOAD_BALANCER_READY_EVENT
static final LoadBalancerReadyEvent LOAD_BALANCER_NOT_READY_EVENT
boolean isReady()
LoadBalancer
is "ready".true
if there were no hosts available and now there are hosts available. false
if there were hosts available and now there are no hosts available.