public class RoundRobinLoadBalancer extends Object implements ReactorServiceInstanceLoadBalancer
ReactiveLoadBalancer.Factory<T>REQUEST| Constructor and Description |
|---|
RoundRobinLoadBalancer(String serviceId,
org.springframework.beans.factory.ObjectProvider<ServiceInstanceSupplier> serviceInstanceSupplier) |
RoundRobinLoadBalancer(String serviceId,
org.springframework.beans.factory.ObjectProvider<ServiceInstanceSupplier> serviceInstanceSupplier,
int seedPosition) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Response<ServiceInstance>> |
choose(Request request)
Choose the next server based on the load balancing algorithm.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchoosepublic RoundRobinLoadBalancer(String serviceId, org.springframework.beans.factory.ObjectProvider<ServiceInstanceSupplier> serviceInstanceSupplier)
public RoundRobinLoadBalancer(String serviceId, org.springframework.beans.factory.ObjectProvider<ServiceInstanceSupplier> serviceInstanceSupplier, int seedPosition)
public reactor.core.publisher.Mono<Response<ServiceInstance>> choose(Request request)
ReactorLoadBalancerchoose in interface ReactiveLoadBalancer<ServiceInstance>choose in interface ReactorLoadBalancer<ServiceInstance>request - - an input requestCopyright © 2019 Pivotal Software, Inc.. All rights reserved.