Class RetryConfiguration
- java.lang.Object
-
- io.github.resilience4j.retry.configure.RetryConfiguration
-
@Configuration public class RetryConfiguration extends java.lang.ObjectConfigurationfor resilience4j-retry.
-
-
Constructor Summary
Constructors Constructor Description RetryConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.github.resilience4j.common.CompositeCustomizer<io.github.resilience4j.common.retry.configuration.RetryConfigCustomizer>compositeRetryCustomizer(java.util.List<io.github.resilience4j.common.retry.configuration.RetryConfigCustomizer> configCustomizers)ReactorRetryAspectExtreactorRetryAspectExt()RetryAspectretryAspect(RetryConfigurationProperties retryConfigurationProperties, io.github.resilience4j.retry.RetryRegistry retryRegistry, java.util.List<RetryAspectExt> retryAspectExtList, FallbackDecorators fallbackDecorators, SpelResolver spelResolver, io.github.resilience4j.core.ContextAwareScheduledThreadPoolExecutor contextAwareScheduledThreadPoolExecutor)io.github.resilience4j.consumer.EventConsumerRegistry<io.github.resilience4j.retry.event.RetryEvent>retryEventConsumerRegistry()The EventConsumerRegistry is used to manage EventConsumer instances.io.github.resilience4j.retry.RetryRegistryretryRegistry(RetryConfigurationProperties retryConfigurationProperties, io.github.resilience4j.consumer.EventConsumerRegistry<io.github.resilience4j.retry.event.RetryEvent> retryEventConsumerRegistry, io.github.resilience4j.core.registry.RegistryEventConsumer<io.github.resilience4j.retry.Retry> retryRegistryEventConsumer, io.github.resilience4j.common.CompositeCustomizer<io.github.resilience4j.common.retry.configuration.RetryConfigCustomizer> compositeRetryCustomizer)io.github.resilience4j.core.registry.RegistryEventConsumer<io.github.resilience4j.retry.Retry>retryRegistryEventConsumer(java.util.Optional<java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<io.github.resilience4j.retry.Retry>>> optionalRegistryEventConsumers)RxJava2RetryAspectExtrxJava2RetryAspectExt()
-
-
-
Method Detail
-
compositeRetryCustomizer
@Bean @Qualifier("compositeRetryCustomizer") public io.github.resilience4j.common.CompositeCustomizer<io.github.resilience4j.common.retry.configuration.RetryConfigCustomizer> compositeRetryCustomizer(@Autowired(required=false) java.util.List<io.github.resilience4j.common.retry.configuration.RetryConfigCustomizer> configCustomizers)
-
retryRegistry
@Bean public io.github.resilience4j.retry.RetryRegistry retryRegistry(RetryConfigurationProperties retryConfigurationProperties, io.github.resilience4j.consumer.EventConsumerRegistry<io.github.resilience4j.retry.event.RetryEvent> retryEventConsumerRegistry, io.github.resilience4j.core.registry.RegistryEventConsumer<io.github.resilience4j.retry.Retry> retryRegistryEventConsumer, @Qualifier("compositeRetryCustomizer") io.github.resilience4j.common.CompositeCustomizer<io.github.resilience4j.common.retry.configuration.RetryConfigCustomizer> compositeRetryCustomizer)
- Parameters:
retryConfigurationProperties- retryConfigurationProperties retry configuration spring propertiesretryEventConsumerRegistry- the event retry registry- Returns:
- the retry definition registry
-
retryRegistryEventConsumer
@Bean @Primary public io.github.resilience4j.core.registry.RegistryEventConsumer<io.github.resilience4j.retry.Retry> retryRegistryEventConsumer(java.util.Optional<java.util.List<io.github.resilience4j.core.registry.RegistryEventConsumer<io.github.resilience4j.retry.Retry>>> optionalRegistryEventConsumers)
-
retryAspect
@Bean @Conditional(AspectJOnClasspathCondition.class) public RetryAspect retryAspect(RetryConfigurationProperties retryConfigurationProperties, io.github.resilience4j.retry.RetryRegistry retryRegistry, @Autowired(required=false) java.util.List<RetryAspectExt> retryAspectExtList, FallbackDecorators fallbackDecorators, SpelResolver spelResolver, @Autowired(required=false) io.github.resilience4j.core.ContextAwareScheduledThreadPoolExecutor contextAwareScheduledThreadPoolExecutor)
- Parameters:
retryConfigurationProperties- retry configuration spring propertiesretryRegistry- retry in memory registry- Returns:
- the spring retry AOP aspect
-
rxJava2RetryAspectExt
@Bean @Conditional({RxJava2OnClasspathCondition.class,AspectJOnClasspathCondition.class}) public RxJava2RetryAspectExt rxJava2RetryAspectExt()
-
reactorRetryAspectExt
@Bean @Conditional({ReactorOnClasspathCondition.class,AspectJOnClasspathCondition.class}) public ReactorRetryAspectExt reactorRetryAspectExt()
-
retryEventConsumerRegistry
@Bean public io.github.resilience4j.consumer.EventConsumerRegistry<io.github.resilience4j.retry.event.RetryEvent> retryEventConsumerRegistry()
The EventConsumerRegistry is used to manage EventConsumer instances. The EventConsumerRegistry is used by the Retry events monitor to show the latest RetryEvent events for each Retry instance.- Returns:
- a default EventConsumerRegistry
DefaultEventConsumerRegistry
-
-