Interface ThreadPoolBulkheadConfigCustomizer

All Superinterfaces:
CustomizerWithName

public interface ThreadPoolBulkheadConfigCustomizer extends CustomizerWithName
Enable customization thread pool bulkhead configuration builders programmatically.
  • Method Summary

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

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

    name
  • Method Details

    • customize

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

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