Interface BulkheadConfigCustomizer

  • All Superinterfaces:
    CustomizerWithName

    public interface BulkheadConfigCustomizer
    extends CustomizerWithName
    Enable customization 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.BulkheadConfig.Builder configBuilder)
      Customize BulkheadConfig configuration builder.
      static BulkheadConfigCustomizer of​(java.lang.String instanceName, java.util.function.Consumer<io.github.resilience4j.bulkhead.BulkheadConfig.Builder> consumer)
      A convenient method to create BulkheadConfigCustomizer using Consumer
    • Method Detail

      • customize

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

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