@Test public void testCreateCircuitBreakerWithConfigName() { CircuitBreakerRegistry circuitBreakerRegistry = CircuitBreakerRegistry.ofDefaults(); circuitBreakerRegistry.addConfiguration("testConfig", CircuitBreakerConfig.custom().slidingWindowSize(5).build()); final CircuitBreaker circuitBreaker = circuitBreakerRegistry .circuitBreaker("circuitBreaker", "testConfig"); assertThat(circuitBreaker).isNotNull(); assertThat(circuitBreaker.getCircuitBreakerConfig().getSlidingWindowSize()).isEqualTo(5); }
@Override public CircuitBreaker circuitBreaker(String name) { return circuitBreaker(name, getDefaultConfig()); }
InMemoryCircuitBreakerRegistry extends
    AbstractRegistry<CircuitBreaker, CircuitBreakerConfig> implements CircuitBreakerRegistry { @Override public CircuitBreaker circuitBreaker(String name) { return circuitBreaker(name, getDefaultConfig()); } }
InMemoryCircuitBreakerRegistry extends
    AbstractRegistry<CircuitBreaker, CircuitBreakerConfig> implements CircuitBreakerRegistry { @Override public CircuitBreaker circuitBreaker(String name) { return circuitBreaker(name, getDefaultConfig()); } InMemoryCircuitBreakerRegistry();  InMemoryCircuitBreakerRegistry(io.vavr.collection.Map<String, String> tags);  InMemoryCircuitBreakerRegistry(Map<String, CircuitBreakerConfig> configs);  InMemoryCircuitBreakerRegistry(Map<String, CircuitBreakerConfig> configs,
        io.vavr.collection.Map<String, String> tags);  InMemoryCircuitBreakerRegistry(Map<String, CircuitBreakerConfig> configs,
        RegistryEventConsumer<CircuitBreaker> registryEventConsumer);  InMemoryCircuitBreakerRegistry(Map<String, CircuitBreakerConfig> configs,
        RegistryEventConsumer<CircuitBreaker> registryEventConsumer,
        io.vavr.collection.Map<String, String> tags);  InMemoryCircuitBreakerRegistry(Map<String, CircuitBreakerConfig> configs,
                                          List<RegistryEventConsumer<CircuitBreaker>> registryEventConsumers,
                                          io.vavr.collection.Map<String, String> tags, RegistryStore<CircuitBreaker> registryStore);  InMemoryCircuitBreakerRegistry(Map<String, CircuitBreakerConfig> configs,
        List<RegistryEventConsumer<CircuitBreaker>> registryEventConsumers);  InMemoryCircuitBreakerRegistry(CircuitBreakerConfig defaultConfig);  InMemoryCircuitBreakerRegistry(CircuitBreakerConfig defaultConfig,
        io.vavr.collection.Map<String, String> tags);  InMemoryCircuitBreakerRegistry(CircuitBreakerConfig defaultConfig,
        RegistryEventConsumer<CircuitBreaker> registryEventConsumer);  InMemoryCircuitBreakerRegistry(CircuitBreakerConfig defaultConfig,
        RegistryEventConsumer<CircuitBreaker> registryEventConsumer,
        io.vavr.collection.Map<String, String> tags);  InMemoryCircuitBreakerRegistry(CircuitBreakerConfig defaultConfig,
        List<RegistryEventConsumer<CircuitBreaker>> registryEventConsumers); }
InMemoryCircuitBreakerRegistry extends
    AbstractRegistry<CircuitBreaker, CircuitBreakerConfig> implements CircuitBreakerRegistry { @Override public CircuitBreaker circuitBreaker(String name) { return circuitBreaker(name, getDefaultConfig()); } InMemoryCircuitBreakerRegistry();  InMemoryCircuitBreakerRegistry(io.vavr.collection.Map<String, String> tags);  InMemoryCircuitBreakerRegistry(Map<String, CircuitBreakerConfig> configs);  InMemoryCircuitBreakerRegistry(Map<String, CircuitBreakerConfig> configs,
        io.vavr.collection.Map<String, String> tags);  InMemoryCircuitBreakerRegistry(Map<String, CircuitBreakerConfig> configs,
        RegistryEventConsumer<CircuitBreaker> registryEventConsumer);  InMemoryCircuitBreakerRegistry(Map<String, CircuitBreakerConfig> configs,
        RegistryEventConsumer<CircuitBreaker> registryEventConsumer,
        io.vavr.collection.Map<String, String> tags);  InMemoryCircuitBreakerRegistry(Map<String, CircuitBreakerConfig> configs,
                                          List<RegistryEventConsumer<CircuitBreaker>> registryEventConsumers,
                                          io.vavr.collection.Map<String, String> tags, RegistryStore<CircuitBreaker> registryStore);  InMemoryCircuitBreakerRegistry(Map<String, CircuitBreakerConfig> configs,
        List<RegistryEventConsumer<CircuitBreaker>> registryEventConsumers);  InMemoryCircuitBreakerRegistry(CircuitBreakerConfig defaultConfig);  InMemoryCircuitBreakerRegistry(CircuitBreakerConfig defaultConfig,
        io.vavr.collection.Map<String, String> tags);  InMemoryCircuitBreakerRegistry(CircuitBreakerConfig defaultConfig,
        RegistryEventConsumer<CircuitBreaker> registryEventConsumer);  InMemoryCircuitBreakerRegistry(CircuitBreakerConfig defaultConfig,
        RegistryEventConsumer<CircuitBreaker> registryEventConsumer,
        io.vavr.collection.Map<String, String> tags);  InMemoryCircuitBreakerRegistry(CircuitBreakerConfig defaultConfig,
        List<RegistryEventConsumer<CircuitBreaker>> registryEventConsumers); @Override Seq<CircuitBreaker> getAllCircuitBreakers(); @Override CircuitBreaker circuitBreaker(String name); @Override CircuitBreaker circuitBreaker(String name, io.vavr.collection.Map<String, String> tags); @Override CircuitBreaker circuitBreaker(String name, CircuitBreakerConfig config); @Override CircuitBreaker circuitBreaker(String name, CircuitBreakerConfig config,
        io.vavr.collection.Map<String, String> tags); @Override CircuitBreaker circuitBreaker(String name, String configName); @Override CircuitBreaker circuitBreaker(String name, String configName,
        io.vavr.collection.Map<String, String> tags); @Override CircuitBreaker circuitBreaker(String name,
        Supplier<CircuitBreakerConfig> circuitBreakerConfigSupplier); @Override CircuitBreaker circuitBreaker(String name,
        Supplier<CircuitBreakerConfig> circuitBreakerConfigSupplier,
        io.vavr.collection.Map<String, String> tags); }
InMemoryCircuitBreakerRegistry extends
    AbstractRegistry<CircuitBreaker, CircuitBreakerConfig> implements CircuitBreakerRegistry { @Override public CircuitBreaker circuitBreaker(String name) { return circuitBreaker(name, getDefaultConfig()); } InMemoryCircuitBreakerRegistry();  InMemoryCircuitBreakerRegistry(io.vavr.collection.Map<String, String> tags);  InMemoryCircuitBreakerRegistry(Map<String, CircuitBreakerConfig> configs);  InMemoryCircuitBreakerRegistry(Map<String, CircuitBreakerConfig> configs,
        io.vavr.collection.Map<String, String> tags);  InMemoryCircuitBreakerRegistry(Map<String, CircuitBreakerConfig> configs,
        RegistryEventConsumer<CircuitBreaker> registryEventConsumer);  InMemoryCircuitBreakerRegistry(Map<String, CircuitBreakerConfig> configs,
        RegistryEventConsumer<CircuitBreaker> registryEventConsumer,
        io.vavr.collection.Map<String, String> tags);  InMemoryCircuitBreakerRegistry(Map<String, CircuitBreakerConfig> configs,
                                          List<RegistryEventConsumer<CircuitBreaker>> registryEventConsumers,
                                          io.vavr.collection.Map<String, String> tags, RegistryStore<CircuitBreaker> registryStore);  InMemoryCircuitBreakerRegistry(Map<String, CircuitBreakerConfig> configs,
        List<RegistryEventConsumer<CircuitBreaker>> registryEventConsumers);  InMemoryCircuitBreakerRegistry(CircuitBreakerConfig defaultConfig);  InMemoryCircuitBreakerRegistry(CircuitBreakerConfig defaultConfig,
        io.vavr.collection.Map<String, String> tags);  InMemoryCircuitBreakerRegistry(CircuitBreakerConfig defaultConfig,
        RegistryEventConsumer<CircuitBreaker> registryEventConsumer);  InMemoryCircuitBreakerRegistry(CircuitBreakerConfig defaultConfig,
        RegistryEventConsumer<CircuitBreaker> registryEventConsumer,
        io.vavr.collection.Map<String, String> tags);  InMemoryCircuitBreakerRegistry(CircuitBreakerConfig defaultConfig,
        List<RegistryEventConsumer<CircuitBreaker>> registryEventConsumers); @Override Seq<CircuitBreaker> getAllCircuitBreakers(); @Override CircuitBreaker circuitBreaker(String name); @Override CircuitBreaker circuitBreaker(String name, io.vavr.collection.Map<String, String> tags); @Override CircuitBreaker circuitBreaker(String name, CircuitBreakerConfig config); @Override CircuitBreaker circuitBreaker(String name, CircuitBreakerConfig config,
        io.vavr.collection.Map<String, String> tags); @Override CircuitBreaker circuitBreaker(String name, String configName); @Override CircuitBreaker circuitBreaker(String name, String configName,
        io.vavr.collection.Map<String, String> tags); @Override CircuitBreaker circuitBreaker(String name,
        Supplier<CircuitBreakerConfig> circuitBreakerConfigSupplier); @Override CircuitBreaker circuitBreaker(String name,
        Supplier<CircuitBreakerConfig> circuitBreakerConfigSupplier,
        io.vavr.collection.Map<String, String> tags);  }