Package io.servicetalk.loadbalancer
Interface LoadBalancerBuilderProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Provider for
LoadBalancerBuilder
that can be registered using ServiceLoader
.-
Method Summary
Modifier and TypeMethodDescription<ResolvedAddress,
C extends LoadBalancedConnection>
LoadBalancerBuilder<ResolvedAddress,C> newBuilder
(String id, LoadBalancerBuilder<ResolvedAddress, C> builder) Returns aLoadBalancerBuilder
based on the pre-initializedLoadBalancerBuilder
.
-
Method Details
-
newBuilder
<ResolvedAddress,C extends LoadBalancedConnection> LoadBalancerBuilder<ResolvedAddress,C> newBuilder(String id, LoadBalancerBuilder<ResolvedAddress, C> builder) Returns aLoadBalancerBuilder
based on the pre-initializedLoadBalancerBuilder
.This method may return the pre-initialized
builder
as-is, or apply custom builder settings before returning it, or wrap it (DelegatingLoadBalancerBuilder
may be helpful).- Type Parameters:
ResolvedAddress
- The resolved address type.C
- The type of connection.- Parameters:
id
- a (unique) identifier used to identify the underlyingLoadBalancerBuilder
.builder
- pre-initializedLoadBalancerBuilder
.- Returns:
- a
LoadBalancerBuilder
based on the pre-initializedLoadBalancerBuilder
.
-