Class LeastRequestsLoadBalancer
- java.lang.Object
-
- io.smallrye.stork.loadbalancer.requests.LeastRequestsLoadBalancer
-
- All Implemented Interfaces:
LoadBalancer
public class LeastRequestsLoadBalancer extends Object implements LoadBalancer
An implementation of load-balancer that keep tracks of inflight request, and picks the less "used" instance.
-
-
Constructor Summary
Constructors Constructor Description LeastRequestsLoadBalancer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceInstanceselectServiceInstance(Collection<ServiceInstance> serviceInstances)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.smallrye.stork.api.LoadBalancer
requiresStrictRecording
-
-
-
-
Method Detail
-
selectServiceInstance
public ServiceInstance selectServiceInstance(Collection<ServiceInstance> serviceInstances)
- Specified by:
selectServiceInstancein interfaceLoadBalancer
-
-