Package io.servicetalk.loadbalancer
Class RoundRobinLoadBalancingPolicy<ResolvedAddress,C extends LoadBalancedConnection>
java.lang.Object
io.servicetalk.loadbalancer.LoadBalancingPolicy<ResolvedAddress,C>
io.servicetalk.loadbalancer.RoundRobinLoadBalancingPolicy<ResolvedAddress,C>
- Type Parameters:
ResolvedAddress
- the type of the resolved addressC
- the type of the load balanced connection
public final class RoundRobinLoadBalancingPolicy<ResolvedAddress,C extends LoadBalancedConnection>
extends LoadBalancingPolicy<ResolvedAddress,C>
A round-robin load balancing policy.
This load balancing algorithm is the well known policy of selecting hosts sequentially
from an ordered set. If a host is considered unhealthy it is skipped the next host
is selected until a healthy host is found or the entire host set has been exhausted.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A builder for immutableRoundRobinLoadBalancingPolicy
instances. -
Method Summary
-
Method Details
-
name
Description copied from class:LoadBalancingPolicy
The name of the load balancing policy.- Specified by:
name
in classLoadBalancingPolicy<ResolvedAddress,
C extends LoadBalancedConnection> - Returns:
- the name of the load balancing policy
-
toString
- Specified by:
toString
in classLoadBalancingPolicy<ResolvedAddress,
C extends LoadBalancedConnection>
-