Package io.servicetalk.http.api
Interface HttpLoadBalancerFactory<ResolvedAddress>
- Type Parameters:
ResolvedAddress
- The type of address after resolution.
- All Superinterfaces:
ExecutionStrategyInfluencer<ExecutionStrategy>
,LoadBalancerFactory<ResolvedAddress,
FilterableStreamingHttpLoadBalancedConnection>
- All Known Implementing Classes:
CacheConnectionHttpLoadBalanceFactory
,DefaultHttpLoadBalancerFactory
,DefaultHttpLoadBalancerFactory
public interface HttpLoadBalancerFactory<ResolvedAddress>
extends LoadBalancerFactory<ResolvedAddress,FilterableStreamingHttpLoadBalancedConnection>
A
LoadBalancerFactory
for HTTP clients.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
Default implementation ofFilterableStreamingHttpLoadBalancedConnection
. -
Method Summary
Modifier and TypeMethodDescriptiondefault HttpExecutionStrategy
Return anExecutionStrategy
that describes the offloads required by the influencer.Deprecated.toLoadBalancedConnection
(FilterableStreamingHttpConnection connection, ReservableRequestConcurrencyController concurrencyController, ContextMap context) Converts the passedFilterableStreamingHttpConnection
to aFilterableStreamingHttpLoadBalancedConnection
.Methods inherited from interface io.servicetalk.client.api.LoadBalancerFactory
newLoadBalancer, newLoadBalancer, newLoadBalancer
-
Method Details
-
toLoadBalancedConnection
@Deprecated default FilterableStreamingHttpLoadBalancedConnection toLoadBalancedConnection(FilterableStreamingHttpConnection connection) Deprecated.Converts the passedFilterableStreamingHttpConnection
to aFilterableStreamingHttpLoadBalancedConnection
.- Parameters:
connection
-FilterableStreamingHttpConnection
to convert- Returns:
FilterableStreamingHttpLoadBalancedConnection
for the passedFilterableStreamingHttpConnection
-
toLoadBalancedConnection
default FilterableStreamingHttpLoadBalancedConnection toLoadBalancedConnection(FilterableStreamingHttpConnection connection, ReservableRequestConcurrencyController concurrencyController, @Nullable ContextMap context) Converts the passedFilterableStreamingHttpConnection
to aFilterableStreamingHttpLoadBalancedConnection
.- Parameters:
connection
-FilterableStreamingHttpConnection
to convertconcurrencyController
-ReservableRequestConcurrencyController
to control access to the connectioncontext
- Acontext
of the caller (e.g. request/LB context) ornull
if no context- Returns:
FilterableStreamingHttpLoadBalancedConnection
for the passedFilterableStreamingHttpConnection
.
-
requiredOffloads
Description copied from interface:ExecutionStrategyInfluencer
Return anExecutionStrategy
that describes the offloads required by the influencer.- Specified by:
requiredOffloads
in interfaceExecutionStrategyInfluencer<ResolvedAddress>
- Specified by:
requiredOffloads
in interfaceLoadBalancerFactory<ResolvedAddress,
FilterableStreamingHttpLoadBalancedConnection> - Returns:
- the
ExecutionStrategy
required by the influencer.
-
toLoadBalancedConnection(FilterableStreamingHttpConnection, ReservableRequestConcurrencyController, ContextMap)