public interface AttemptRetryPolicyBuilder
AttemptRetryPolicyAttemptRetryPolicy.of(ratpack.func.Action)| Modifier and Type | Field and Description |
|---|---|
static Delay |
DEFAULT_DELAY
By default, retries will wait 1 second between executions.
|
static int |
DEFAULT_MAX_ATTEMPTS
By default, this retry policy will give up after the fifth retry attempt.
|
| Modifier and Type | Method and Description |
|---|---|
AttemptRetryPolicy |
build()
Builds an
AttemptRetryPolicy |
AttemptRetryPolicyBuilder |
delay(Delay delay)
The delay strategy
|
AttemptRetryPolicyBuilder |
maxAttempts(int maxAttempts)
Maximum number of allowed retry attempts
|
static final Delay DEFAULT_DELAY
static final int DEFAULT_MAX_ATTEMPTS
AttemptRetryPolicy build()
AttemptRetryPolicyAttemptRetryPolicyBuilder delay(Delay delay)
delay - the delay strategyAttemptRetryPolicyBuilder maxAttempts(int maxAttempts)
maxAttempts - maximum number of allowed retry attempts