Package io.servicetalk.loadbalancer
Class RoundRobinLoadBalancingPolicy.Builder
java.lang.Object
io.servicetalk.loadbalancer.RoundRobinLoadBalancingPolicy.Builder
- Enclosing class:
- RoundRobinLoadBalancingPolicy<ResolvedAddress,
C extends LoadBalancedConnection>
A builder for immutable
RoundRobinLoadBalancingPolicy
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<ResolvedAddress,
C extends LoadBalancedConnection>
RoundRobinLoadBalancingPolicy<ResolvedAddress,C> build()
Construct the immutableRoundRobinLoadBalancingPolicy
.failOpen
(boolean failOpen) Set whether the host selector should attempt to use an unhealthyHost
as a last resort.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failOpen
Set whether the host selector should attempt to use an unhealthyHost
as a last resort.- Parameters:
failOpen
- whether the host selector should attempt to use an unhealthyHost
as a last resort.- Returns:
- this
P2CLoadBalancingPolicy.Builder
.
-
build
public <ResolvedAddress,C extends LoadBalancedConnection> RoundRobinLoadBalancingPolicy<ResolvedAddress,C> build()Construct the immutableRoundRobinLoadBalancingPolicy
.- Type Parameters:
ResolvedAddress
- the type of the resolved address.C
- the refined type of theLoadBalancedConnection
.- Returns:
- the concrete
RoundRobinLoadBalancingPolicy
.
-