public abstract class AbstractRoundRobinLoadBalancer extends java.lang.Object implements LoadBalancer
Modifier and Type | Field and Description |
---|---|
protected java.util.concurrent.atomic.AtomicInteger |
index |
Constructor and Description |
---|
AbstractRoundRobinLoadBalancer() |
Modifier and Type | Method and Description |
---|---|
protected ServiceInstance |
getNextAvailable(java.util.List<ServiceInstance> serviceInstances) |
abstract java.lang.String |
getServiceID() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
empty, fixed, getContextPath, select, select
public abstract java.lang.String getServiceID()
protected ServiceInstance getNextAvailable(java.util.List<ServiceInstance> serviceInstances)
serviceInstances
- A list of service instancesNoAvailableServiceException
if none