@Internal
public class CacheRateLimiterRegistry
extends java.lang.Object
implements io.github.resilience4j.ratelimiter.RateLimiterRegistry
Constructor and Description |
---|
CacheRateLimiterRegistry(io.micronaut.cache.SyncCache<?> cache,
io.github.resilience4j.ratelimiter.RateLimiterConfig defaultConfig) |
CacheRateLimiterRegistry(io.micronaut.cache.SyncCache<?> cache,
io.github.resilience4j.ratelimiter.RateLimiterConfig defaultConfig,
io.vavr.collection.Map<java.lang.String,java.lang.String> registryTags) |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguration(java.lang.String configName,
io.github.resilience4j.ratelimiter.RateLimiterConfig configuration) |
void |
addRateLimiters(java.util.Map<java.lang.String,io.github.resilience4j.ratelimiter.RateLimiterConfig> rateLimiterMap) |
java.util.Optional<io.github.resilience4j.ratelimiter.RateLimiter> |
find(java.lang.String name) |
io.vavr.collection.Seq<io.github.resilience4j.ratelimiter.RateLimiter> |
getAllRateLimiters() |
java.util.Optional<io.github.resilience4j.ratelimiter.RateLimiterConfig> |
getConfiguration(java.lang.String configName) |
io.github.resilience4j.ratelimiter.RateLimiterConfig |
getDefaultConfig() |
io.github.resilience4j.core.Registry.EventPublisher<io.github.resilience4j.ratelimiter.RateLimiter> |
getEventPublisher() |
io.github.resilience4j.ratelimiter.RateLimiter |
rateLimiter(java.lang.String name) |
io.github.resilience4j.ratelimiter.RateLimiter |
rateLimiter(java.lang.String name,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags) |
io.github.resilience4j.ratelimiter.RateLimiter |
rateLimiter(java.lang.String name,
io.github.resilience4j.ratelimiter.RateLimiterConfig rateLimiterConfig) |
io.github.resilience4j.ratelimiter.RateLimiter |
rateLimiter(java.lang.String name,
io.github.resilience4j.ratelimiter.RateLimiterConfig rateLimiterConfig,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags) |
io.github.resilience4j.ratelimiter.RateLimiter |
rateLimiter(java.lang.String name,
java.lang.String configName) |
io.github.resilience4j.ratelimiter.RateLimiter |
rateLimiter(java.lang.String name,
java.lang.String configName,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags) |
io.github.resilience4j.ratelimiter.RateLimiter |
rateLimiter(java.lang.String name,
java.util.function.Supplier<io.github.resilience4j.ratelimiter.RateLimiterConfig> rateLimiterConfigSupplier) |
io.github.resilience4j.ratelimiter.RateLimiter |
rateLimiter(java.lang.String name,
java.util.function.Supplier<io.github.resilience4j.ratelimiter.RateLimiterConfig> rateLimiterConfigSupplier,
io.vavr.collection.Map<java.lang.String,java.lang.String> tags) |
java.util.Optional<io.github.resilience4j.ratelimiter.RateLimiter> |
remove(java.lang.String name) |
java.util.Optional<io.github.resilience4j.ratelimiter.RateLimiter> |
replace(java.lang.String name,
io.github.resilience4j.ratelimiter.RateLimiter newEntry) |
public CacheRateLimiterRegistry(io.micronaut.cache.SyncCache<?> cache, io.github.resilience4j.ratelimiter.RateLimiterConfig defaultConfig)
public CacheRateLimiterRegistry(io.micronaut.cache.SyncCache<?> cache, io.github.resilience4j.ratelimiter.RateLimiterConfig defaultConfig, io.vavr.collection.Map<java.lang.String,java.lang.String> registryTags)
public void addRateLimiters(java.util.Map<java.lang.String,io.github.resilience4j.ratelimiter.RateLimiterConfig> rateLimiterMap)
public io.vavr.collection.Seq<io.github.resilience4j.ratelimiter.RateLimiter> getAllRateLimiters()
getAllRateLimiters
in interface io.github.resilience4j.ratelimiter.RateLimiterRegistry
public io.github.resilience4j.ratelimiter.RateLimiter rateLimiter(java.lang.String name)
rateLimiter
in interface io.github.resilience4j.ratelimiter.RateLimiterRegistry
public io.github.resilience4j.ratelimiter.RateLimiter rateLimiter(java.lang.String name, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
rateLimiter
in interface io.github.resilience4j.ratelimiter.RateLimiterRegistry
public io.github.resilience4j.ratelimiter.RateLimiter rateLimiter(java.lang.String name, io.github.resilience4j.ratelimiter.RateLimiterConfig rateLimiterConfig)
rateLimiter
in interface io.github.resilience4j.ratelimiter.RateLimiterRegistry
public io.github.resilience4j.ratelimiter.RateLimiter rateLimiter(java.lang.String name, io.github.resilience4j.ratelimiter.RateLimiterConfig rateLimiterConfig, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
rateLimiter
in interface io.github.resilience4j.ratelimiter.RateLimiterRegistry
public io.github.resilience4j.ratelimiter.RateLimiter rateLimiter(java.lang.String name, java.util.function.Supplier<io.github.resilience4j.ratelimiter.RateLimiterConfig> rateLimiterConfigSupplier)
rateLimiter
in interface io.github.resilience4j.ratelimiter.RateLimiterRegistry
public io.github.resilience4j.ratelimiter.RateLimiter rateLimiter(java.lang.String name, java.util.function.Supplier<io.github.resilience4j.ratelimiter.RateLimiterConfig> rateLimiterConfigSupplier, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
rateLimiter
in interface io.github.resilience4j.ratelimiter.RateLimiterRegistry
public io.github.resilience4j.ratelimiter.RateLimiter rateLimiter(java.lang.String name, java.lang.String configName)
rateLimiter
in interface io.github.resilience4j.ratelimiter.RateLimiterRegistry
public io.github.resilience4j.ratelimiter.RateLimiter rateLimiter(java.lang.String name, java.lang.String configName, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
rateLimiter
in interface io.github.resilience4j.ratelimiter.RateLimiterRegistry
public void addConfiguration(java.lang.String configName, io.github.resilience4j.ratelimiter.RateLimiterConfig configuration)
addConfiguration
in interface io.github.resilience4j.core.Registry<io.github.resilience4j.ratelimiter.RateLimiter,io.github.resilience4j.ratelimiter.RateLimiterConfig>
public java.util.Optional<io.github.resilience4j.ratelimiter.RateLimiter> find(java.lang.String name)
find
in interface io.github.resilience4j.core.Registry<io.github.resilience4j.ratelimiter.RateLimiter,io.github.resilience4j.ratelimiter.RateLimiterConfig>
public java.util.Optional<io.github.resilience4j.ratelimiter.RateLimiter> remove(java.lang.String name)
remove
in interface io.github.resilience4j.core.Registry<io.github.resilience4j.ratelimiter.RateLimiter,io.github.resilience4j.ratelimiter.RateLimiterConfig>
public java.util.Optional<io.github.resilience4j.ratelimiter.RateLimiter> replace(java.lang.String name, io.github.resilience4j.ratelimiter.RateLimiter newEntry)
replace
in interface io.github.resilience4j.core.Registry<io.github.resilience4j.ratelimiter.RateLimiter,io.github.resilience4j.ratelimiter.RateLimiterConfig>
public java.util.Optional<io.github.resilience4j.ratelimiter.RateLimiterConfig> getConfiguration(java.lang.String configName)
getConfiguration
in interface io.github.resilience4j.core.Registry<io.github.resilience4j.ratelimiter.RateLimiter,io.github.resilience4j.ratelimiter.RateLimiterConfig>
public io.github.resilience4j.ratelimiter.RateLimiterConfig getDefaultConfig()
getDefaultConfig
in interface io.github.resilience4j.core.Registry<io.github.resilience4j.ratelimiter.RateLimiter,io.github.resilience4j.ratelimiter.RateLimiterConfig>
public io.github.resilience4j.core.Registry.EventPublisher<io.github.resilience4j.ratelimiter.RateLimiter> getEventPublisher()
getEventPublisher
in interface io.github.resilience4j.core.Registry<io.github.resilience4j.ratelimiter.RateLimiter,io.github.resilience4j.ratelimiter.RateLimiterConfig>