Class BulkheadConfiguration

java.lang.Object
io.github.resilience4j.bulkhead.configure.BulkheadConfiguration

@Configuration
@Import({ThreadPoolBulkheadConfiguration.class,FallbackConfiguration.class,SpelResolverConfiguration.class})
public class BulkheadConfiguration
extends java.lang.Object
Configuration for resilience4j-bulkhead.
  • Constructor Summary

    Constructors 
    Constructor Description
    BulkheadConfiguration()  
  • Method Summary

    Modifier and Type Method Description
    BulkheadAspect bulkheadAspect​(BulkheadConfigurationProperties bulkheadConfigurationProperties, io.github.resilience4j.bulkhead.ThreadPoolBulkheadRegistry threadPoolBulkheadRegistry, io.github.resilience4j.bulkhead.BulkheadRegistry bulkheadRegistry, java.util.List<BulkheadAspectExt> bulkHeadAspectExtList, FallbackDecorators fallbackDecorators, SpelResolver spelResolver)  
    io.github.resilience4j.consumer.EventConsumerRegistry<io.github.resilience4j.bulkhead.event.BulkheadEvent> bulkheadEventConsumerRegistry()
    The EventConsumerRegistry is used to manage EventConsumer instances.
    io.github.resilience4j.bulkhead.BulkheadRegistry bulkheadRegistry​(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.core.registry.RegistryEventConsumer<io.github.resilience4j.bulkhead.Bulkhead> bulkheadRegistryEventConsumer​(java.util.Optional<java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<io.github.resilience4j.bulkhead.Bulkhead>>> optionalRegistryEventConsumers)  
    io.github.resilience4j.common.CompositeCustomizer<io.github.resilience4j.common.bulkhead.configuration.BulkheadConfigCustomizer> compositeBulkheadCustomizer​(java.util.List<io.github.resilience4j.common.bulkhead.configuration.BulkheadConfigCustomizer> customizers)  
    ReactorBulkheadAspectExt reactorBulkHeadAspectExt()  
    RxJava2BulkheadAspectExt rxJava2BulkHeadAspectExt()  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • compositeBulkheadCustomizer

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

      @Bean public io.github.resilience4j.bulkhead.BulkheadRegistry bulkheadRegistry​(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 - bulk head spring configuration properties
      bulkheadEventConsumerRegistry - the bulk head event consumer registry
      Returns:
      the BulkheadRegistry with all needed setup in place
    • bulkheadRegistryEventConsumer

      @Bean @Primary public io.github.resilience4j.core.registry.RegistryEventConsumer<io.github.resilience4j.bulkhead.Bulkhead> bulkheadRegistryEventConsumer​(java.util.Optional<java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<io.github.resilience4j.bulkhead.Bulkhead>>> optionalRegistryEventConsumers)
    • bulkheadAspect

      @Bean @Conditional(AspectJOnClasspathCondition.class) public BulkheadAspect bulkheadAspect​(BulkheadConfigurationProperties bulkheadConfigurationProperties, io.github.resilience4j.bulkhead.ThreadPoolBulkheadRegistry threadPoolBulkheadRegistry, io.github.resilience4j.bulkhead.BulkheadRegistry bulkheadRegistry, @Autowired(required=false) java.util.List<BulkheadAspectExt> bulkHeadAspectExtList, FallbackDecorators fallbackDecorators, SpelResolver spelResolver)
    • rxJava2BulkHeadAspectExt

      @Bean @Conditional({RxJava2OnClasspathCondition.class,AspectJOnClasspathCondition.class}) public RxJava2BulkheadAspectExt rxJava2BulkHeadAspectExt()
    • reactorBulkHeadAspectExt

      @Bean @Conditional({ReactorOnClasspathCondition.class,AspectJOnClasspathCondition.class}) public ReactorBulkheadAspectExt reactorBulkHeadAspectExt()
    • bulkheadEventConsumerRegistry

      @Bean public io.github.resilience4j.consumer.EventConsumerRegistry<io.github.resilience4j.bulkhead.event.BulkheadEvent> bulkheadEventConsumerRegistry()
      The EventConsumerRegistry is used to manage EventConsumer instances. The EventConsumerRegistry is used by the BulkheadHealthIndicator to show the latest Bulkhead events for each Bulkhead instance.
      Returns:
      a default EventConsumerRegistry DefaultEventConsumerRegistry