W - Type of Objects written on the connections created by this load balancer.R - Type of Objects read from the connections created by this load balancer.public class HttpLoadBalancer<W,R> extends AbstractLoadBalancer<W,R>
AbstractLoadBalancer for HTTP clients.
This load balancer uses a naive failure detector that removes the host on the first 503 HTTP response. The
intention here is just to demonstrate how to write complex load balancing logic using lower level constructs in the
client.AbstractLoadBalancer,
HttpLoadBalancingClient| Constructor and Description |
|---|
HttpLoadBalancer() |
| Modifier and Type | Method and Description |
|---|---|
protected long |
getWeight(io.reactivex.netty.client.events.ClientEventListener eventListener) |
protected io.reactivex.netty.client.events.ClientEventListener |
newListener() |
newStrategy, toHolderprotected io.reactivex.netty.client.events.ClientEventListener newListener()
newListener in class AbstractLoadBalancer<W,R>protected long getWeight(io.reactivex.netty.client.events.ClientEventListener eventListener)
getWeight in class AbstractLoadBalancer<W,R>