@Internal public interface RetryPolicy
RetryingExecutor
.Modifier and Type | Interface and Description |
---|---|
static class |
RetryPolicy.FixedRetryPolicy
RetryPolicy with fixed timeout, delay and max attempts. |
Modifier and Type | Field and Description |
---|---|
static RetryPolicy |
NONE |
Modifier and Type | Method and Description |
---|---|
static RetryPolicy |
fixed(int maxAttempts,
long timeout,
long delayAfterFailure) |
static RetryPolicy |
fromConfig(ReadableConfig config) |
long |
retryAfter(int failedAttempt,
Exception exception) |
long |
timeoutFor(int attempt) |
static final RetryPolicy NONE
static RetryPolicy fromConfig(ReadableConfig config)
long timeoutFor(int attempt)
long retryAfter(int failedAttempt, Exception exception)
static RetryPolicy fixed(int maxAttempts, long timeout, long delayAfterFailure)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.