Interface BulkheadConfigCustomizer

All Superinterfaces:
CustomizerWithName

public interface BulkheadConfigCustomizer extends CustomizerWithName
Enable customization bulkhead configuration builders programmatically.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    customize(io.github.resilience4j.bulkhead.BulkheadConfig.Builder configBuilder)
    Customize BulkheadConfig configuration builder.
    of(String instanceName, Consumer<io.github.resilience4j.bulkhead.BulkheadConfig.Builder> consumer)
    A convenient method to create BulkheadConfigCustomizer using Consumer

    Methods inherited from interface io.github.resilience4j.common.CustomizerWithName

    name
  • Method Details

    • customize

      void customize(io.github.resilience4j.bulkhead.BulkheadConfig.Builder configBuilder)
      Customize BulkheadConfig configuration builder.
      Parameters:
      configBuilder - to be customized
    • of

      static BulkheadConfigCustomizer of(@NonNull String instanceName, @NonNull Consumer<io.github.resilience4j.bulkhead.BulkheadConfig.Builder> consumer)
      A convenient method to create BulkheadConfigCustomizer using Consumer
      Parameters:
      instanceName - the name of the instance
      consumer - delegate call to Consumer when customize(BulkheadConfig.Builder) is called
      Returns:
      Customizer instance