public final class RetryingHttpRequesterFilter extends java.lang.Object implements StreamingHttpClientFilterFactory, StreamingHttpConnectionFilterFactory, HttpExecutionStrategyInfluencer
RetryStrategies
Modifier and Type | Class and Description |
---|---|
static class |
RetryingHttpRequesterFilter.Builder
A builder for
RetryingHttpRequesterFilter , which puts an upper bound on retry attempts. |
Modifier and Type | Method and Description |
---|---|
StreamingHttpClientFilter |
create(FilterableStreamingHttpClient client)
Creates a
StreamingHttpClientFilter using the provided StreamingHttpClientFilter . |
StreamingHttpConnectionFilter |
create(FilterableStreamingHttpConnection connection)
Create a
StreamingHttpConnectionFilter using the provided FilterableStreamingHttpConnection . |
HttpExecutionStrategy |
influenceStrategy(HttpExecutionStrategy strategy)
Optionally modify the passed
HttpExecutionStrategy to a new HttpExecutionStrategy that suits
this HttpExecutionStrategyInfluencer . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append, asMultiAddressClientFilter
append
defaultStreamingInfluencer
public StreamingHttpClientFilter create(FilterableStreamingHttpClient client)
StreamingHttpClientFilterFactory
StreamingHttpClientFilter
using the provided StreamingHttpClientFilter
.create
in interface StreamingHttpClientFilterFactory
client
- FilterableStreamingHttpClient
to filterStreamingHttpClientFilter
using the provided StreamingHttpClientFilter
.public StreamingHttpConnectionFilter create(FilterableStreamingHttpConnection connection)
StreamingHttpConnectionFilterFactory
StreamingHttpConnectionFilter
using the provided FilterableStreamingHttpConnection
.create
in interface StreamingHttpConnectionFilterFactory
connection
- FilterableStreamingHttpConnection
to filterStreamingHttpConnectionFilter
using the provided FilterableStreamingHttpConnection
.public HttpExecutionStrategy influenceStrategy(HttpExecutionStrategy strategy)
HttpExecutionStrategyInfluencer
HttpExecutionStrategy
to a new HttpExecutionStrategy
that suits
this HttpExecutionStrategyInfluencer
.influenceStrategy
in interface HttpExecutionStrategyInfluencer
strategy
- HttpExecutionStrategy
to influence.HttpExecutionStrategy
that suits this HttpExecutionStrategyInfluencer