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