Class InMemoryRateLimiterRegistry

java.lang.Object
io.github.resilience4j.core.registry.AbstractRegistry<RateLimiter,RateLimiterConfig>
io.github.resilience4j.ratelimiter.internal.InMemoryRateLimiterRegistry
All Implemented Interfaces:
io.github.resilience4j.core.Registry<RateLimiter,RateLimiterConfig>, RateLimiterRegistry

public class InMemoryRateLimiterRegistry extends io.github.resilience4j.core.registry.AbstractRegistry<RateLimiter,RateLimiterConfig> implements RateLimiterRegistry
Backend RateLimiter manager. Constructs backend RateLimiters according to configuration values.
  • Constructor Details

    • InMemoryRateLimiterRegistry

      public InMemoryRateLimiterRegistry()
      The constructor with default default.
    • InMemoryRateLimiterRegistry

      public InMemoryRateLimiterRegistry(Map<String,RateLimiterConfig> configs)
    • InMemoryRateLimiterRegistry

      public InMemoryRateLimiterRegistry(Map<String,RateLimiterConfig> configs, Map<String,String> tags)
    • InMemoryRateLimiterRegistry

      public InMemoryRateLimiterRegistry(Map<String,RateLimiterConfig> configs, io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter> registryEventConsumer)
    • InMemoryRateLimiterRegistry

      public InMemoryRateLimiterRegistry(Map<String,RateLimiterConfig> configs, io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter> registryEventConsumer, Map<String,String> tags)
    • InMemoryRateLimiterRegistry

      public InMemoryRateLimiterRegistry(Map<String,RateLimiterConfig> configs, List<io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter>> registryEventConsumers)
    • InMemoryRateLimiterRegistry

      public InMemoryRateLimiterRegistry(Map<String,RateLimiterConfig> configs, List<io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter>> registryEventConsumers, Map<String,String> tags)
    • InMemoryRateLimiterRegistry

      public InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig)
      The constructor with custom default config.
      Parameters:
      defaultConfig - The default config.
    • InMemoryRateLimiterRegistry

      public InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig, Map<String,String> tags)
    • InMemoryRateLimiterRegistry

      public InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig, io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter> registryEventConsumer)
    • InMemoryRateLimiterRegistry

      public InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig, io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter> registryEventConsumer, Map<String,String> tags)
    • InMemoryRateLimiterRegistry

      public InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig, List<io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter>> registryEventConsumers)
    • InMemoryRateLimiterRegistry

      public InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig, List<io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter>> registryEventConsumers, Map<String,String> tags)
    • InMemoryRateLimiterRegistry

      public InMemoryRateLimiterRegistry(Map<String,RateLimiterConfig> configs, List<io.github.resilience4j.core.registry.RegistryEventConsumer<RateLimiter>> registryEventConsumers, Map<String,String> tags, io.github.resilience4j.core.RegistryStore<RateLimiter> registryStore)
  • Method Details