@Test public void rateLimiterNewWithNullNonDefaultConfig() throws Exception { exception.expect(NullPointerException.class); exception.expectMessage(CONFIG_MUST_NOT_BE_NULL); RateLimiterRegistry registry = new InMemoryRateLimiterRegistry(config); RateLimiterConfig rateLimiterConfig = null; registry.rateLimiter("name", rateLimiterConfig); }
@Override public RateLimiter rateLimiter(final String name) { return rateLimiter(name, getDefaultConfig()); }
InMemoryRateLimiterRegistry extends
    AbstractRegistry<RateLimiter, RateLimiterConfig> implements RateLimiterRegistry { @Override public RateLimiter rateLimiter(final String name) { return rateLimiter(name, getDefaultConfig()); } }
InMemoryRateLimiterRegistry extends
    AbstractRegistry<RateLimiter, RateLimiterConfig> implements RateLimiterRegistry { @Override public RateLimiter rateLimiter(final String name) { return rateLimiter(name, getDefaultConfig()); } InMemoryRateLimiterRegistry();  InMemoryRateLimiterRegistry(io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs,
        io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs,
        RegistryEventConsumer<RateLimiter> registryEventConsumer);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs,
        RegistryEventConsumer<RateLimiter> registryEventConsumer,
        io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs,
        List<RegistryEventConsumer<RateLimiter>> registryEventConsumers);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs,
        List<RegistryEventConsumer<RateLimiter>> registryEventConsumers,
        io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig);  InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig,
        io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig,
        RegistryEventConsumer<RateLimiter> registryEventConsumer);  InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig,
        RegistryEventConsumer<RateLimiter> registryEventConsumer,
        io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig,
        List<RegistryEventConsumer<RateLimiter>> registryEventConsumers);  InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig,
        List<RegistryEventConsumer<RateLimiter>> registryEventConsumers,
        io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs,
                                          List<RegistryEventConsumer<RateLimiter>> registryEventConsumers,
                                          io.vavr.collection.Map<String, String> tags, RegistryStore<RateLimiter> registryStore); }
InMemoryRateLimiterRegistry extends
    AbstractRegistry<RateLimiter, RateLimiterConfig> implements RateLimiterRegistry { @Override public RateLimiter rateLimiter(final String name) { return rateLimiter(name, getDefaultConfig()); } InMemoryRateLimiterRegistry();  InMemoryRateLimiterRegistry(io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs,
        io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs,
        RegistryEventConsumer<RateLimiter> registryEventConsumer);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs,
        RegistryEventConsumer<RateLimiter> registryEventConsumer,
        io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs,
        List<RegistryEventConsumer<RateLimiter>> registryEventConsumers);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs,
        List<RegistryEventConsumer<RateLimiter>> registryEventConsumers,
        io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig);  InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig,
        io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig,
        RegistryEventConsumer<RateLimiter> registryEventConsumer);  InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig,
        RegistryEventConsumer<RateLimiter> registryEventConsumer,
        io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig,
        List<RegistryEventConsumer<RateLimiter>> registryEventConsumers);  InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig,
        List<RegistryEventConsumer<RateLimiter>> registryEventConsumers,
        io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs,
                                          List<RegistryEventConsumer<RateLimiter>> registryEventConsumers,
                                          io.vavr.collection.Map<String, String> tags, RegistryStore<RateLimiter> registryStore); @Override Seq<RateLimiter> getAllRateLimiters(); @Override RateLimiter rateLimiter(final String name); @Override RateLimiter rateLimiter(String name, io.vavr.collection.Map<String, String> tags); @Override RateLimiter rateLimiter(final String name, final RateLimiterConfig config); @Override RateLimiter rateLimiter(String name, RateLimiterConfig config,
        io.vavr.collection.Map<String, String> tags); @Override RateLimiter rateLimiter(final String name,
        final Supplier<RateLimiterConfig> rateLimiterConfigSupplier); @Override RateLimiter rateLimiter(String name,
        Supplier<RateLimiterConfig> rateLimiterConfigSupplier,
        io.vavr.collection.Map<String, String> tags); @Override RateLimiter rateLimiter(String name, String configName); @Override RateLimiter rateLimiter(String name, String configName,
        io.vavr.collection.Map<String, String> tags); }
InMemoryRateLimiterRegistry extends
    AbstractRegistry<RateLimiter, RateLimiterConfig> implements RateLimiterRegistry { @Override public RateLimiter rateLimiter(final String name) { return rateLimiter(name, getDefaultConfig()); } InMemoryRateLimiterRegistry();  InMemoryRateLimiterRegistry(io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs,
        io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs,
        RegistryEventConsumer<RateLimiter> registryEventConsumer);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs,
        RegistryEventConsumer<RateLimiter> registryEventConsumer,
        io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs,
        List<RegistryEventConsumer<RateLimiter>> registryEventConsumers);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs,
        List<RegistryEventConsumer<RateLimiter>> registryEventConsumers,
        io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig);  InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig,
        io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig,
        RegistryEventConsumer<RateLimiter> registryEventConsumer);  InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig,
        RegistryEventConsumer<RateLimiter> registryEventConsumer,
        io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig,
        List<RegistryEventConsumer<RateLimiter>> registryEventConsumers);  InMemoryRateLimiterRegistry(RateLimiterConfig defaultConfig,
        List<RegistryEventConsumer<RateLimiter>> registryEventConsumers,
        io.vavr.collection.Map<String, String> tags);  InMemoryRateLimiterRegistry(Map<String, RateLimiterConfig> configs,
                                          List<RegistryEventConsumer<RateLimiter>> registryEventConsumers,
                                          io.vavr.collection.Map<String, String> tags, RegistryStore<RateLimiter> registryStore); @Override Seq<RateLimiter> getAllRateLimiters(); @Override RateLimiter rateLimiter(final String name); @Override RateLimiter rateLimiter(String name, io.vavr.collection.Map<String, String> tags); @Override RateLimiter rateLimiter(final String name, final RateLimiterConfig config); @Override RateLimiter rateLimiter(String name, RateLimiterConfig config,
        io.vavr.collection.Map<String, String> tags); @Override RateLimiter rateLimiter(final String name,
        final Supplier<RateLimiterConfig> rateLimiterConfigSupplier); @Override RateLimiter rateLimiter(String name,
        Supplier<RateLimiterConfig> rateLimiterConfigSupplier,
        io.vavr.collection.Map<String, String> tags); @Override RateLimiter rateLimiter(String name, String configName); @Override RateLimiter rateLimiter(String name, String configName,
        io.vavr.collection.Map<String, String> tags);  }