public interface RetryRegistry
RetryRegistry is a factory to create Retry instances which stores all Retry instances in a registry.| Modifier and Type | Method and Description |
|---|---|
io.vavr.collection.Seq<Retry> |
getAllRetries()
Returns all managed
Retry instances. |
static RetryRegistry |
of(RetryConfig retryConfig)
Creates a RetryRegistry with a custom Retry configuration.
|
static RetryRegistry |
ofDefaults()
Creates a RetryRegistry with a default Retry configuration.
|
Retry |
retry(java.lang.String name)
Returns a managed
Retry or creates a new one with the default Retry configuration. |
Retry |
retry(java.lang.String name,
RetryConfig retryConfig)
Returns a managed
Retry or creates a new one with a custom Retry configuration. |
Retry |
retry(java.lang.String name,
java.util.function.Supplier<RetryConfig> retryConfigSupplier)
Returns a managed
Retry or creates a new one with a custom Retry configuration. |
io.vavr.collection.Seq<Retry> getAllRetries()
Retry instances.Retry instances.Retry retry(java.lang.String name)
Retry or creates a new one with the default Retry configuration.name - the name of the RetryRetryRetry retry(java.lang.String name, RetryConfig retryConfig)
Retry or creates a new one with a custom Retry configuration.name - the name of the RetryretryConfig - a custom Retry configurationRetryRetry retry(java.lang.String name, java.util.function.Supplier<RetryConfig> retryConfigSupplier)
Retry or creates a new one with a custom Retry configuration.name - the name of the RetryretryConfigSupplier - a supplier of a custom Retry configurationRetrystatic RetryRegistry of(RetryConfig retryConfig)
retryConfig - a custom Retry configurationstatic RetryRegistry ofDefaults()