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 classDefault implementation ofFilterableStreamingHttpLoadBalancedConnection. -
Method Summary
Modifier and TypeMethodDescriptiondefault HttpExecutionStrategyReturn anExecutionStrategythat describes the offloads required by the influencer.Deprecated.toLoadBalancedConnection(FilterableStreamingHttpConnection connection, ReservableRequestConcurrencyController concurrencyController, ContextMap context) Converts the passedFilterableStreamingHttpConnectionto 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 passedFilterableStreamingHttpConnectionto aFilterableStreamingHttpLoadBalancedConnection.- Parameters:
connection-FilterableStreamingHttpConnectionto convert- Returns:
FilterableStreamingHttpLoadBalancedConnectionfor the passedFilterableStreamingHttpConnection
-
toLoadBalancedConnection
default FilterableStreamingHttpLoadBalancedConnection toLoadBalancedConnection(FilterableStreamingHttpConnection connection, ReservableRequestConcurrencyController concurrencyController, @Nullable ContextMap context) Converts the passedFilterableStreamingHttpConnectionto aFilterableStreamingHttpLoadBalancedConnection.- Parameters:
connection-FilterableStreamingHttpConnectionto convertconcurrencyController-ReservableRequestConcurrencyControllerto control access to the connectioncontext- Acontextof the caller (e.g. request/LB context) ornullif no context- Returns:
FilterableStreamingHttpLoadBalancedConnectionfor the passedFilterableStreamingHttpConnection.
-
requiredOffloads
Description copied from interface:ExecutionStrategyInfluencerReturn anExecutionStrategythat describes the offloads required by the influencer.- Specified by:
requiredOffloadsin interfaceExecutionStrategyInfluencer<ResolvedAddress>- Specified by:
requiredOffloadsin interfaceLoadBalancerFactory<ResolvedAddress,FilterableStreamingHttpLoadBalancedConnection> - Returns:
- the
ExecutionStrategyrequired by the influencer.
-
toLoadBalancedConnection(FilterableStreamingHttpConnection, ReservableRequestConcurrencyController, ContextMap)