Package io.servicetalk.http.api
Interface HttpExecutionStrategyInfluencer
- All Superinterfaces:
ExecutionStrategyInfluencer<HttpExecutionStrategy>
- All Known Subinterfaces:
BlockingHttpService
,BlockingStreamingHttpService
,HttpService
,HttpServiceBase
,StreamingHttpClientFilterFactory
,StreamingHttpConnectionFilterFactory
,StreamingHttpService
,StreamingHttpServiceFilterFactory
,TimeoutFromRequest
- All Known Implementing Classes:
BasicAuthHttpServiceFilter
,ContentCodingHttpRequesterFilter
,ContentCodingHttpServiceFilter
,ContentEncodingHttpRequesterFilter
,ContentEncodingHttpServiceFilter
,EnforceSequentialModeRequesterFilter
,GrpcExceptionMapperServiceFilter
,GrpcLifecycleObserverRequesterFilter
,GrpcLifecycleObserverServiceFilter
,HostHeaderHttpRequesterFilter
,HttpExceptionMapperServiceFilter
,HttpLifecycleObserverRequesterFilter
,HttpLifecycleObserverServiceFilter
,IdleTimeoutConnectionFilter
,JavaNetSoTimeoutHttpConnectionFilter
,OpenTelemetryHttpRequestFilter
,OpenTelemetryHttpServerFilter
,PayloadSizeLimitingHttpRequesterFilter
,PayloadSizeLimitingHttpServiceFilter
,RedirectingHttpRequesterFilter
,RequestTargetDecoderHttpServiceFilter
,RequestTargetEncoderHttpRequesterFilter
,RequestTargetEncoderHttpServiceFilter
,RetryingHttpRequesterFilter
,StreamingHttpServiceFilter
,StreamingHttpServiceToOffloadedStreamingHttpService
,TimeoutHttpRequesterFilter
,TimeoutHttpServiceFilter
,TracingHttpRequesterFilter
,TracingHttpServiceFilter
,TrafficResilienceHttpClientFilter
,TrafficResilienceHttpServiceFilter
public interface HttpExecutionStrategyInfluencer
extends ExecutionStrategyInfluencer<HttpExecutionStrategy>
An entity that wishes to influence
HttpExecutionStrategy
for an HTTP client or server.-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.This method is not useful anymore and will be removed in future releases.default HttpExecutionStrategy
influenceStrategy
(HttpExecutionStrategy strategy) Deprecated.ImplementrequiredOffloads()
instead.default HttpExecutionStrategy
Return anExecutionStrategy
that describes the offloads required by the influencer.
-
Method Details
-
influenceStrategy
Deprecated.ImplementrequiredOffloads()
instead.Optionally modify the passedHttpExecutionStrategy
to a newHttpExecutionStrategy
that suits thisHttpExecutionStrategyInfluencer
.Implementations should not return
HttpExecutionStrategies.defaultStrategy()
unless it was also provided as input.- Parameters:
strategy
-HttpExecutionStrategy
to influence.- Returns:
HttpExecutionStrategy
that suits thisHttpExecutionStrategyInfluencer
-
requiredOffloads
Return anExecutionStrategy
that describes the offloads required by the influencer.The provided default implementation requests offloading of all operations. Implementations that require no offloading should be careful to return
HttpExecutionStrategies.offloadNone()
rather thanHttpExecutionStrategies.offloadNever()
. Implementations should avoid returningHttpExecutionStrategies.defaultStrategy()
, instead returning the strategy they require orHttpExecutionStrategies.offloadAll()
if offloading for all paths is required (safe default).- Specified by:
requiredOffloads
in interfaceExecutionStrategyInfluencer<HttpExecutionStrategy>
- Returns:
- the
ExecutionStrategy
required by the influencer.
-
defaultStreamingInfluencer
Deprecated.This method is not useful anymore and will be removed in future releases.Returns anHttpExecutionStrategyInfluencer
to be used for the default streaming programming model.- Returns:
- An
HttpExecutionStrategyInfluencer
to be used for the default streaming programming model.
-