@Configuration
@Import(value={ThreadPoolBulkheadConfiguration.class,FallbackConfiguration.class})
public class BulkheadConfiguration
extends java.lang.Object
Configuration for resilience4j-bulkhead.| Constructor and Description |
|---|
BulkheadConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
BulkheadAspect |
bulkheadAspect(BulkheadConfigurationProperties bulkheadConfigurationProperties,
io.github.resilience4j.bulkhead.ThreadPoolBulkheadRegistry threadPoolBulkheadRegistry,
io.github.resilience4j.bulkhead.BulkheadRegistry bulkheadRegistry,
java.util.List<BulkheadAspectExt> bulkHeadAspectExtList,
FallbackDecorators fallbackDecorators) |
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() |
@Bean
@Qualifier(value="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)
@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(value="compositeBulkheadCustomizer") io.github.resilience4j.common.CompositeCustomizer<io.github.resilience4j.common.bulkhead.configuration.BulkheadConfigCustomizer> compositeBulkheadCustomizer)
bulkheadConfigurationProperties - bulk head spring configuration propertiesbulkheadEventConsumerRegistry - the bulk head event consumer registry@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)
@Bean @Conditional(value=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)
@Bean
@Conditional(value={RxJava2OnClasspathCondition.class,AspectJOnClasspathCondition.class})
public RxJava2BulkheadAspectExt rxJava2BulkHeadAspectExt()
@Bean
@Conditional(value={ReactorOnClasspathCondition.class,AspectJOnClasspathCondition.class})
public ReactorBulkheadAspectExt reactorBulkHeadAspectExt()
@Bean public io.github.resilience4j.consumer.EventConsumerRegistry<io.github.resilience4j.bulkhead.event.BulkheadEvent> bulkheadEventConsumerRegistry()
DefaultEventConsumerRegistry