Class RandomLoadBalancer
java.lang.Object
ai.pipestream.dynamic.grpc.client.discovery.RandomLoadBalancer
- All Implemented Interfaces:
io.smallrye.stork.api.LoadBalancer
Simple random load balancer implementation for Stork.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.stork.api.ServiceInstanceselectServiceInstance(Collection<io.smallrye.stork.api.ServiceInstance> instances) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.smallrye.stork.api.LoadBalancer
requiresStrictRecording
-
Constructor Details
-
RandomLoadBalancer
public RandomLoadBalancer()Creates a new RandomLoadBalancer.
-
-
Method Details
-
selectServiceInstance
public io.smallrye.stork.api.ServiceInstance selectServiceInstance(Collection<io.smallrye.stork.api.ServiceInstance> instances) - Specified by:
selectServiceInstancein interfaceio.smallrye.stork.api.LoadBalancer
-