public class ServiceInstanceListRoundRobinLoadBalancer extends AbstractRoundRobinLoadBalancer
index
Constructor and Description |
---|
ServiceInstanceListRoundRobinLoadBalancer(ServiceInstanceList serviceInstanceList) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getContextPath() |
java.lang.String |
getServiceID() |
org.reactivestreams.Publisher<ServiceInstance> |
select(java.lang.Object discriminator) |
getNextAvailable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
empty, fixed, select
public ServiceInstanceListRoundRobinLoadBalancer(ServiceInstanceList serviceInstanceList)
serviceInstanceList
- The service instance listpublic org.reactivestreams.Publisher<ServiceInstance> select(@Nullable java.lang.Object discriminator)
discriminator
- An object used to discriminate the server to select. Usually the service IDServiceInstance
public java.lang.String getServiceID()
getServiceID
in class AbstractRoundRobinLoadBalancer
public java.util.Optional<java.lang.String> getContextPath()