Interface CircuitBreakerBundle.ConfigurationBuilder
-
- All Known Implementing Classes:
CircuitBreakerBundle.Builder
- Enclosing class:
- CircuitBreakerBundle<T extends io.dropwizard.Configuration>
public static interface CircuitBreakerBundle.ConfigurationBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends io.dropwizard.Configuration>
CircuitBreakerBundle.ExceptionBuilder<T>withConfigProvider(CircuitBreakerConfigurationProvider<T> provider)
Use a provider for a custom default configuration for circuit breakers created using the bundle.<T extends io.dropwizard.Configuration>
CircuitBreakerBundle.ExceptionBuilder<T>withCustomConfig(CircuitBreakerConfiguration config)
Provide a custom default configuration for circuit breakers created using the bundle.<T extends io.dropwizard.Configuration>
CircuitBreakerBundle.ExceptionBuilder<T>withDefaultConfig()
Use the default configuration for circuit breakers created using the bundle.
-
-
-
Method Detail
-
withCustomConfig
<T extends io.dropwizard.Configuration> CircuitBreakerBundle.ExceptionBuilder<T> withCustomConfig(CircuitBreakerConfiguration config)
Provide a custom default configuration for circuit breakers created using the bundle.- Type Parameters:
T
- Type of the Dropwizard configuration.- Parameters:
config
- The circuit breaker configuration.- Returns:
- the same builder instance
-
withConfigProvider
<T extends io.dropwizard.Configuration> CircuitBreakerBundle.ExceptionBuilder<T> withConfigProvider(CircuitBreakerConfigurationProvider<T> provider)
Use a provider for a custom default configuration for circuit breakers created using the bundle.- Type Parameters:
T
- Type of the Dropwizard configuration.- Parameters:
provider
- Provider to extract the circuit breaker configuration from the Dropwizard configuration.- Returns:
- the same builder instance
-
withDefaultConfig
<T extends io.dropwizard.Configuration> CircuitBreakerBundle.ExceptionBuilder<T> withDefaultConfig()
Use the default configuration for circuit breakers created using the bundle.- Type Parameters:
T
- Type of the Dropwizard configuration.- Returns:
- the same builder instance
-
-