Interface CircuitBreakerBundle.ConfigurationBuilder

All Known Implementing Classes:
CircuitBreakerBundle.Builder
Enclosing class:
CircuitBreakerBundle<T extends io.dropwizard.core.Configuration>

public static interface CircuitBreakerBundle.ConfigurationBuilder
  • Method Details

    • withCustomConfig

      <T extends io.dropwizard.core.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.core.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.core.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