Class RefreshScopedBulkheadAutoConfiguration

java.lang.Object
io.github.resilience4j.bulkhead.autoconfigure.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 Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final io.github.resilience4j.bulkhead.configure.BulkheadConfiguration
     
    protected final io.github.resilience4j.bulkhead.configure.threadpool.ThreadPoolBulkheadConfiguration
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    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.CommonThreadPoolBulkheadConfigurationProperties 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 Details

    • bulkheadConfiguration

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

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

    • RefreshScopedBulkheadAutoConfiguration

      protected RefreshScopedBulkheadAutoConfiguration()
  • Method Details

    • 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.CommonThreadPoolBulkheadConfigurationProperties 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