Class RefreshScopedBulkheadAutoConfiguration


  • @Configuration
    @ConditionalOnClass({io.github.resilience4j.bulkhead.Bulkhead.class,org.springframework.cloud.context.scope.refresh.RefreshScope.class})
    @AutoConfigureAfter(org.springframework.cloud.autoconfigure.RefreshAutoConfiguration.class)
    @AutoConfigureBefore(io.github.resilience4j.bulkhead.autoconfigure.BulkheadAutoConfiguration.class)
    public class RefreshScopedBulkheadAutoConfiguration
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected io.github.resilience4j.bulkhead.configure.BulkheadConfiguration bulkheadConfiguration  
      protected io.github.resilience4j.bulkhead.configure.threadpool.ThreadPoolBulkheadConfiguration threadPoolBulkheadConfiguration  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.github.resilience4j.bulkhead.BulkheadRegistry bulkheadRegistry​(io.github.resilience4j.bulkhead.configure.BulkheadConfigurationProperties bulkheadConfigurationProperties, io.github.resilience4j.consumer.EventConsumerRegistry<io.github.resilience4j.bulkhead.event.BulkheadEvent> bulkheadEventConsumerRegistry, io.github.resilience4j.core.registry.RegistryEventConsumer<io.github.resilience4j.bulkhead.Bulkhead> bulkheadRegistryEventConsumer, io.github.resilience4j.common.CompositeCustomizer<io.github.resilience4j.common.bulkhead.configuration.BulkheadConfigCustomizer> compositeBulkheadCustomizer)  
      io.github.resilience4j.bulkhead.ThreadPoolBulkheadRegistry threadPoolBulkheadRegistry​(io.github.resilience4j.common.bulkhead.configuration.ThreadPoolBulkheadConfigurationProperties threadPoolBulkheadConfigurationProperties, 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)  
      • Methods inherited from class java.lang.Object

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

      • bulkheadConfiguration

        protected final io.github.resilience4j.bulkhead.configure.BulkheadConfiguration bulkheadConfiguration
      • threadPoolBulkheadConfiguration

        protected final io.github.resilience4j.bulkhead.configure.threadpool.ThreadPoolBulkheadConfiguration threadPoolBulkheadConfiguration
    • Constructor Detail

      • RefreshScopedBulkheadAutoConfiguration

        protected RefreshScopedBulkheadAutoConfiguration()
    • Method Detail

      • bulkheadRegistry

        @Bean
        @RefreshScope
        @ConditionalOnMissingBean
        public io.github.resilience4j.bulkhead.BulkheadRegistry bulkheadRegistry​(io.github.resilience4j.bulkhead.configure.BulkheadConfigurationProperties bulkheadConfigurationProperties,
                                                                                 io.github.resilience4j.consumer.EventConsumerRegistry<io.github.resilience4j.bulkhead.event.BulkheadEvent> bulkheadEventConsumerRegistry,
                                                                                 io.github.resilience4j.core.registry.RegistryEventConsumer<io.github.resilience4j.bulkhead.Bulkhead> bulkheadRegistryEventConsumer,
                                                                                 @Qualifier("compositeBulkheadCustomizer")
                                                                                 io.github.resilience4j.common.CompositeCustomizer<io.github.resilience4j.common.bulkhead.configuration.BulkheadConfigCustomizer> compositeBulkheadCustomizer)
        Parameters:
        bulkheadConfigurationProperties - bulkhead spring configuration properties
        bulkheadEventConsumerRegistry - the bulkhead event consumer registry
        Returns:
        the RefreshScoped BulkheadRegistry
      • threadPoolBulkheadRegistry

        @Bean
        @RefreshScope
        @ConditionalOnMissingBean
        public io.github.resilience4j.bulkhead.ThreadPoolBulkheadRegistry threadPoolBulkheadRegistry​(io.github.resilience4j.common.bulkhead.configuration.ThreadPoolBulkheadConfigurationProperties threadPoolBulkheadConfigurationProperties,
                                                                                                     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:
        threadPoolBulkheadConfigurationProperties - thread pool bulkhead spring configuration properties
        bulkheadEventConsumerRegistry - the bulk head event consumer registry
        Returns:
        the RefreshScoped ThreadPoolBulkheadRegistry