Class ThreadPoolBulkheadConfiguration


  • @Configuration
    public class ThreadPoolBulkheadConfiguration
    extends java.lang.Object
    Configuration for ThreadPoolBulkhead
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.github.resilience4j.common.CompositeCustomizer<io.github.resilience4j.common.bulkhead.configuration.ThreadPoolBulkheadConfigCustomizer> compositeThreadPoolBulkheadCustomizer​(java.util.List<io.github.resilience4j.common.bulkhead.configuration.ThreadPoolBulkheadConfigCustomizer> customizers)  
      io.github.resilience4j.bulkhead.ThreadPoolBulkheadRegistry threadPoolBulkheadRegistry​(io.github.resilience4j.common.bulkhead.configuration.ThreadPoolBulkheadConfigurationProperties bulkheadConfigurationProperties, io.github.resilience4j.consumer.EventConsumerRegistry<io.github.resilience4j.bulkhead.event.BulkheadEvent> bulkheadEventConsumerRegistry, io.github.resilience4j.core.registry.RegistryEventConsumer<io.github.resilience4j.bulkhead.ThreadPoolBulkhead> threadPoolBulkheadRegistryEventConsumer, io.github.resilience4j.common.CompositeCustomizer<io.github.resilience4j.common.bulkhead.configuration.ThreadPoolBulkheadConfigCustomizer> compositeThreadPoolBulkheadCustomizer)  
      io.github.resilience4j.core.registry.RegistryEventConsumer<io.github.resilience4j.bulkhead.ThreadPoolBulkhead> threadPoolBulkheadRegistryEventConsumer​(java.util.Optional<java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<io.github.resilience4j.bulkhead.ThreadPoolBulkhead>>> optionalRegistryEventConsumers)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThreadPoolBulkheadConfiguration

        public ThreadPoolBulkheadConfiguration()
    • Method Detail

      • compositeThreadPoolBulkheadCustomizer

        @Bean
        @Qualifier("compositeThreadPoolBulkheadCustomizer")
        public io.github.resilience4j.common.CompositeCustomizer<io.github.resilience4j.common.bulkhead.configuration.ThreadPoolBulkheadConfigCustomizer> compositeThreadPoolBulkheadCustomizer​(@Autowired(required=false)
                                                                                                                                                                                                java.util.List<io.github.resilience4j.common.bulkhead.configuration.ThreadPoolBulkheadConfigCustomizer> customizers)
      • threadPoolBulkheadRegistry

        @Bean
        public io.github.resilience4j.bulkhead.ThreadPoolBulkheadRegistry threadPoolBulkheadRegistry​(io.github.resilience4j.common.bulkhead.configuration.ThreadPoolBulkheadConfigurationProperties bulkheadConfigurationProperties,
                                                                                                     io.github.resilience4j.consumer.EventConsumerRegistry<io.github.resilience4j.bulkhead.event.BulkheadEvent> bulkheadEventConsumerRegistry,
                                                                                                     io.github.resilience4j.core.registry.RegistryEventConsumer<io.github.resilience4j.bulkhead.ThreadPoolBulkhead> threadPoolBulkheadRegistryEventConsumer,
                                                                                                     @Qualifier("compositeThreadPoolBulkheadCustomizer")
                                                                                                     io.github.resilience4j.common.CompositeCustomizer<io.github.resilience4j.common.bulkhead.configuration.ThreadPoolBulkheadConfigCustomizer> compositeThreadPoolBulkheadCustomizer)
        Parameters:
        bulkheadConfigurationProperties - bulk head spring configuration properties
        bulkheadEventConsumerRegistry - the bulk head event consumer registry
        Returns:
        the ThreadPoolBulkheadRegistry with all needed setup in place
      • threadPoolBulkheadRegistryEventConsumer

        @Bean
        @Primary
        public io.github.resilience4j.core.registry.RegistryEventConsumer<io.github.resilience4j.bulkhead.ThreadPoolBulkhead> threadPoolBulkheadRegistryEventConsumer​(java.util.Optional<java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<io.github.resilience4j.bulkhead.ThreadPoolBulkhead>>> optionalRegistryEventConsumers)