public final class InMemoryRetryRegistry extends io.github.resilience4j.core.registry.AbstractRegistry<Retry,RetryConfig> implements RetryRegistry
RetryRegistry.Builder| Constructor and Description |
|---|
InMemoryRetryRegistry()
The constructor with default default.
|
InMemoryRetryRegistry(java.util.Map<java.lang.String,RetryConfig> configs) |
InMemoryRetryRegistry(java.util.Map<java.lang.String,RetryConfig> configs,
java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<Retry>> registryEventConsumers) |
InMemoryRetryRegistry(java.util.Map<java.lang.String,RetryConfig> configs,
java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<Retry>> registryEventConsumers,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags) |
InMemoryRetryRegistry(java.util.Map<java.lang.String,RetryConfig> configs,
java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<Retry>> registryEventConsumers,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags,
io.github.resilience4j.core.RegistryStore<Retry> registryStore) |
InMemoryRetryRegistry(java.util.Map<java.lang.String,RetryConfig> configs,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags) |
InMemoryRetryRegistry(java.util.Map<java.lang.String,RetryConfig> configs,
io.github.resilience4j.core.registry.RegistryEventConsumer<Retry> registryEventConsumer) |
InMemoryRetryRegistry(java.util.Map<java.lang.String,RetryConfig> configs,
io.github.resilience4j.core.registry.RegistryEventConsumer<Retry> registryEventConsumer,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags) |
InMemoryRetryRegistry(io.vavr.collection.Map<java.lang.String,java.lang.String> tags) |
InMemoryRetryRegistry(RetryConfig defaultConfig)
The constructor with custom default config.
|
InMemoryRetryRegistry(RetryConfig defaultConfig,
java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<Retry>> registryEventConsumers) |
InMemoryRetryRegistry(RetryConfig defaultConfig,
java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<Retry>> registryEventConsumers,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags) |
InMemoryRetryRegistry(RetryConfig defaultConfig,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags) |
InMemoryRetryRegistry(RetryConfig defaultConfig,
io.github.resilience4j.core.registry.RegistryEventConsumer<Retry> registryEventConsumer) |
InMemoryRetryRegistry(RetryConfig defaultConfig,
io.github.resilience4j.core.registry.RegistryEventConsumer<Retry> registryEventConsumer,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags) |
| 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,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
Returns a managed
Retry or creates a new one with the default Retry configuration. |
Retry |
retry(java.lang.String name,
RetryConfig config)
Returns a managed
Retry or creates a new one with a custom Retry configuration. |
Retry |
retry(java.lang.String name,
RetryConfig config,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
Returns a managed
Retry or creates a new one with a custom Retry configuration. |
Retry |
retry(java.lang.String name,
java.lang.String configName)
Returns a managed
Retry or creates a new one. |
Retry |
retry(java.lang.String name,
java.lang.String configName,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
Returns a managed
Retry or creates a new one. |
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. |
Retry |
retry(java.lang.String name,
java.util.function.Supplier<RetryConfig> retryConfigSupplier,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
Returns a managed
Retry or creates a new one with a custom Retry configuration. |
addConfiguration, computeIfAbsent, find, getAllTags, getConfiguration, getDefaultConfig, getEventPublisher, getTags, remove, replaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic InMemoryRetryRegistry()
public InMemoryRetryRegistry(io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
public InMemoryRetryRegistry(java.util.Map<java.lang.String,RetryConfig> configs)
public InMemoryRetryRegistry(java.util.Map<java.lang.String,RetryConfig> configs, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
public InMemoryRetryRegistry(java.util.Map<java.lang.String,RetryConfig> configs, io.github.resilience4j.core.registry.RegistryEventConsumer<Retry> registryEventConsumer)
public InMemoryRetryRegistry(java.util.Map<java.lang.String,RetryConfig> configs, io.github.resilience4j.core.registry.RegistryEventConsumer<Retry> registryEventConsumer, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
public InMemoryRetryRegistry(java.util.Map<java.lang.String,RetryConfig> configs, java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<Retry>> registryEventConsumers)
public InMemoryRetryRegistry(java.util.Map<java.lang.String,RetryConfig> configs, java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<Retry>> registryEventConsumers, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
public InMemoryRetryRegistry(java.util.Map<java.lang.String,RetryConfig> configs, java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<Retry>> registryEventConsumers, io.vavr.collection.Map<java.lang.String,java.lang.String> tags, io.github.resilience4j.core.RegistryStore<Retry> registryStore)
public InMemoryRetryRegistry(RetryConfig defaultConfig)
defaultConfig - The default config.public InMemoryRetryRegistry(RetryConfig defaultConfig, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
public InMemoryRetryRegistry(RetryConfig defaultConfig, io.github.resilience4j.core.registry.RegistryEventConsumer<Retry> registryEventConsumer)
public InMemoryRetryRegistry(RetryConfig defaultConfig, io.github.resilience4j.core.registry.RegistryEventConsumer<Retry> registryEventConsumer, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
public InMemoryRetryRegistry(RetryConfig defaultConfig, java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<Retry>> registryEventConsumers)
public InMemoryRetryRegistry(RetryConfig defaultConfig, java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<Retry>> registryEventConsumers, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
public io.vavr.collection.Seq<Retry> getAllRetries()
Retry 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, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
Retry or creates a new one with the default Retry configuration.
The tags passed will be appended to the tags already configured for the registry.
When tags (keys) of the two collide the tags passed with this method will override the tags
of the registry.
retry in interface RetryRegistryname - the name of the Retrytags - tags added to the RetryRetrypublic Retry retry(java.lang.String name, RetryConfig config)
Retry or creates a new one with a custom Retry configuration.retry in interface RetryRegistryname - the name of the Retryconfig - a custom Retry configurationRetrypublic Retry retry(java.lang.String name, RetryConfig config, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
RetryRegistryRetry or creates a new one with a custom Retry configuration.
The tags passed will be appended to the tags already configured for the registry.
When tags (keys) of the two collide the tags passed with this method will override the tags
of the registry.
retry in interface RetryRegistryname - the name of the Retryconfig - a custom Retry configurationtags - tags added to the RetryRetrypublic Retry retry(java.lang.String name, java.util.function.Supplier<RetryConfig> retryConfigSupplier)
Retry 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 configurationRetrypublic Retry retry(java.lang.String name, java.util.function.Supplier<RetryConfig> retryConfigSupplier, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
RetryRegistryRetry or creates a new one with a custom Retry configuration.
The tags passed will be appended to the tags already configured for the registry.
When tags (keys) of the two collide the tags passed with this method will override the tags
of the registry.
retry in interface RetryRegistryname - the name of the RetryretryConfigSupplier - a supplier of a custom Retry configurationtags - tags added to the RetryRetrypublic Retry retry(java.lang.String name, java.lang.String configName)
Retry or creates a new one.
The configuration must have been added upfront via Registry.addConfiguration(String, Object).retry in interface RetryRegistryname - the name of the RetryconfigName - the name of the shared configurationRetrypublic Retry retry(java.lang.String name, java.lang.String configName, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
RetryRegistryRetry or creates a new one.
The configuration must have been added upfront via Registry.addConfiguration(String, Object).
The tags passed will be appended to the tags already configured for the registry.
When tags (keys) of the two collide the tags passed with this method will override the tags
of the registry.
retry in interface RetryRegistryname - the name of the RetryconfigName - the name of the shared configurationtags - tags added to the RetryRetry