Interface CircuitBreakerBundle.ConfigurationBuilder

    • 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