public final class InMemoryRetryRegistry extends java.lang.Object implements RetryRegistry
| Constructor and Description |
|---|
InMemoryRetryRegistry()
The constructor with default retry properties.
|
InMemoryRetryRegistry(RetryConfig defaultRetryConfig)
The constructor with custom default retry properties.
|
| Modifier and Type | Method and Description |
|---|---|
io.vavr.collection.Seq<Retry> |
getAllRetries()
Returns all managed
Retry instances. |
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 customRetryConfig)
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitof, ofDefaultspublic InMemoryRetryRegistry()
public InMemoryRetryRegistry(RetryConfig defaultRetryConfig)
defaultRetryConfig - The BackendMonitor service properties.public io.vavr.collection.Seq<Retry> getAllRetries()
RetryRegistryRetry instances.getAllRetries in interface RetryRegistryRetry instances.public Retry retry(java.lang.String name)
Retry or creates a new one with the default Retry configuration.retry in interface RetryRegistryname - the name of the RetryRetrypublic Retry retry(java.lang.String name, RetryConfig customRetryConfig)
Retry or creates a new one with a custom Retry configuration.retry in interface RetryRegistryname - the name of the RetrycustomRetryConfig - a custom Retry configurationRetrypublic Retry retry(java.lang.String name, java.util.function.Supplier<RetryConfig> retryConfigSupplier)
RetryRegistryRetry or creates a new one with a custom Retry configuration.retry in interface RetryRegistryname - the name of the RetryretryConfigSupplier - a supplier of a custom Retry configurationRetry