public abstract class AbstractCircuitBreakerFactory<CONF,CONFB extends ConfigBuilder<CONF>> extends Object
Constructor and Description |
---|
AbstractCircuitBreakerFactory() |
Modifier and Type | Method and Description |
---|---|
protected abstract CONFB |
configBuilder(String id)
Creates a configuration builder for the given id.
|
void |
configure(Consumer<CONFB> consumer,
String... ids)
Adds configurations for circuit breakers.
|
abstract void |
configureDefault(Function<String,CONF> defaultConfiguration)
Sets the default configuration for circuit breakers.
|
protected ConcurrentHashMap<String,CONF> |
getConfigurations()
Gets the configurations for the circuit breakers.
|
public void configure(Consumer<CONFB> consumer, String... ids)
ids
- The id of the circuit breakerconsumer
- A configuration builder consumer, allows consumers to customize the
builder before the configuration is builtprotected ConcurrentHashMap<String,CONF> getConfigurations()
protected abstract CONFB configBuilder(String id)
id
- The id of the circuit breakerCopyright © 2022 Pivotal Software, Inc.. All rights reserved.