Class BulkheadConfiguration

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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 Detail

      • BulkheadConfiguration

        public BulkheadConfiguration()
    • Method Detail

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