Class RetryConfiguration

java.lang.Object
io.github.resilience4j.retry.configure.RetryConfiguration

@Configuration
public class RetryConfiguration
extends java.lang.Object
Configuration for resilience4j-retry.
  • Constructor Summary

    Constructors 
    Constructor Description
    RetryConfiguration()  
  • Method Summary

    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)  
    ReactorRetryAspectExt reactorRetryAspectExt()  
    RetryAspect retryAspect​(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.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, 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)  
    RxJava2RetryAspectExt rxJava2RetryAspectExt()  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • 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 properties
      retryEventConsumerRegistry - 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 properties
      retryRegistry - retry in memory registry
      Returns:
      the spring retry AOP aspect
    • rxJava2RetryAspectExt

    • 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