Interface ThreadPoolBulkheadConfigCustomizer

  • All Superinterfaces:
    CustomizerWithName

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

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void customize​(io.github.resilience4j.bulkhead.ThreadPoolBulkheadConfig.Builder configBuilder)
      Customize ThreadPoolBulkheadConfig configuration builder.
      static ThreadPoolBulkheadConfigCustomizer of​(java.lang.String instanceName, java.util.function.Consumer<io.github.resilience4j.bulkhead.ThreadPoolBulkheadConfig.Builder> consumer)
      A convenient method to create ThreadpoolBulkheadConfigCustomizer using Consumer
    • Method Detail

      • customize

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

        static ThreadPoolBulkheadConfigCustomizer of​(@NonNull
                                                     java.lang.String instanceName,
                                                     @NonNull
                                                     java.util.function.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