R
- result typepublic interface RetryPolicy<R> extends Policy<R>
RetryPolicyBuilder
for configuration options.
This class is threadsafe.
RetryPolicyConfig
,
RetryPolicyBuilder
Modifier and Type | Method and Description |
---|---|
static <R> RetryPolicyBuilder<R> |
builder()
Creates a RetryPolicyBuilder that by default will build a RetryPolicy that allows 3 execution attempts max with no
delay, unless configured otherwise.
|
static <R> RetryPolicyBuilder<R> |
builder(RetryPolicyConfig<R> config)
Creates a new RetryPolicyBuilder that will be based on the
config . |
RetryPolicyConfig<R> |
getConfig()
Returns the
RetryPolicyConfig that the RetryPolicy was built with. |
static <R> RetryPolicy<R> |
ofDefaults()
Creates a RetryPolicy that allows 3 execution attempts max with no delay.
|
toExecutor
static <R> RetryPolicyBuilder<R> builder()
ofDefaults()
static <R> RetryPolicyBuilder<R> builder(RetryPolicyConfig<R> config)
config
.static <R> RetryPolicy<R> ofDefaults()
builder()
instead.builder()
RetryPolicyConfig<R> getConfig()
RetryPolicyConfig
that the RetryPolicy was built with.Copyright © 2022. All rights reserved.