Class ThreadPoolBulkheadConfiguration

java.lang.Object
io.github.resilience4j.bulkhead.configure.threadpool.ThreadPoolBulkheadConfiguration

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

    Constructors 
    Constructor Description
    ThreadPoolBulkheadConfiguration()  
  • Method Summary

    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 Details

  • Method Details

    • 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)