Class AbstractRoundRobinLoadBalancer
java.lang.Object
io.micronaut.http.client.loadbalance.AbstractRoundRobinLoadBalancer
- All Implemented Interfaces:
LoadBalancer
- Direct Known Subclasses:
DiscoveryClientRoundRobinLoadBalancer
,ServiceInstanceListRoundRobinLoadBalancer
- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ServiceInstance
getNextAvailable
(List<ServiceInstance> serviceInstances) abstract String
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.client.LoadBalancer
getContextPath, select, select
-
Field Details
-
index
-
-
Constructor Details
-
AbstractRoundRobinLoadBalancer
public AbstractRoundRobinLoadBalancer()
-
-
Method Details
-
getServiceID
- Returns:
- The service ID
-
getNextAvailable
- Parameters:
serviceInstances
- A list of service instances- Returns:
- The next available instance or a
NoAvailableServiceException
if none
-