public static interface CircuitBreakerBundle.ConfigurationBuilder
Modifier and Type | Method and Description |
---|---|
<T extends io.dropwizard.Configuration> |
withConfigProvider(CircuitBreakerConfigurationProvider<T> provider)
Use a provider for a custom default configuration for circuit breakers created using the
bundle.
|
<T extends io.dropwizard.Configuration> |
withCustomConfig(CircuitBreakerConfiguration config)
Provide a custom default configuration for circuit breakers created using the bundle.
|
<T extends io.dropwizard.Configuration> |
withDefaultConfig()
Use the default configuration for circuit breakers created using the bundle.
|
<T extends io.dropwizard.Configuration> CircuitBreakerBundle.ExceptionBuilder<T> withCustomConfig(CircuitBreakerConfiguration config)
T
- Type of the Dropwizard configuration.config
- The circuit breaker configuration.<T extends io.dropwizard.Configuration> CircuitBreakerBundle.ExceptionBuilder<T> withConfigProvider(CircuitBreakerConfigurationProvider<T> provider)
T
- Type of the Dropwizard configuration.provider
- Provider to extract the circuit breaker configuration from the Dropwizard
configuration.<T extends io.dropwizard.Configuration> CircuitBreakerBundle.ExceptionBuilder<T> withDefaultConfig()
T
- Type of the Dropwizard configuration.