public static final class RetryingHttpRequesterFilter.Builder extends AbstractRetryingFilterBuilder<RetryingHttpRequesterFilter.Builder,RetryingHttpRequesterFilter,HttpRequestMetaData>
RetryingHttpRequesterFilter
, which puts an upper bound on retry attempts.
To configure the maximum number of retry attempts see AbstractRetryingFilterBuilder.maxRetries(int)
.AbstractRetryingFilterBuilder.ReadOnlyRetryableSettings<Meta>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
protected RetryingHttpRequesterFilter |
build(AbstractRetryingFilterBuilder.ReadOnlyRetryableSettings<HttpRequestMetaData> readOnlySettings)
Builds a retrying
Filter for provided
ReadOnlyRetryableSettings<Meta> . |
java.util.function.BiPredicate<HttpRequestMetaData,java.lang.Throwable> |
retryForIdempotentRequestsPredicate()
Behaves as
AbstractRetryingFilterBuilder.defaultRetryForPredicate() , but also retries
idempotent requests when applicable. |
buildWithConstantBackoff, buildWithConstantBackoff, buildWithConstantBackoffAndJitter, buildWithConstantBackoffAndJitter, buildWithExponentialBackoff, buildWithExponentialBackoff, buildWithExponentialBackoffAndJitter, buildWithExponentialBackoffAndJitter, buildWithImmediateRetries, defaultRetryForPredicate, maxRetries, retryFor
protected RetryingHttpRequesterFilter build(AbstractRetryingFilterBuilder.ReadOnlyRetryableSettings<HttpRequestMetaData> readOnlySettings)
AbstractRetryingFilterBuilder
Filter
for provided
ReadOnlyRetryableSettings<Meta>
.build
in class AbstractRetryingFilterBuilder<RetryingHttpRequesterFilter.Builder,RetryingHttpRequesterFilter,HttpRequestMetaData>
readOnlySettings
- a read-only settings for retryable filtersFilter
public java.util.function.BiPredicate<HttpRequestMetaData,java.lang.Throwable> retryForIdempotentRequestsPredicate()
AbstractRetryingFilterBuilder.defaultRetryForPredicate()
, but also retries
idempotent requests when applicable.
Note: This predicate expects that the retried requests
have a
payload body
that is replayable, i.e. multiple subscribes to the
payload Publisher
emit the same data. Publisher
s that do not emit any data or which are
created from in-memory data are typically replayable.
BiPredicate
for AbstractRetryingFilterBuilder.retryFor(BiPredicate)
builder method