Class AbstractRetryConfigurationOnMissingBean
java.lang.Object
io.github.resilience4j.retry.autoconfigure.AbstractRetryConfigurationOnMissingBean
- Direct Known Subclasses:
RetryConfigurationOnMissingBean
@Configuration
@Import({FallbackConfigurationOnMissingBean.class,SpelResolverConfigurationOnMissingBean.class})
public abstract class AbstractRetryConfigurationOnMissingBean
extends Object
Configuration
for resilience4j-retry.-
Field Summary
Modifier and TypeFieldDescriptionprotected final io.github.resilience4j.retry.configure.RetryConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.github.resilience4j.common.CompositeCustomizer<io.github.resilience4j.common.retry.configuration.RetryConfigCustomizer>
compositeRetryCustomizer
(List<io.github.resilience4j.common.retry.configuration.RetryConfigCustomizer> configCustomizers) io.github.resilience4j.retry.configure.ReactorRetryAspectExt
io.github.resilience4j.retry.configure.RetryAspect
retryAspect
(io.github.resilience4j.retry.configure.RetryConfigurationProperties retryConfigurationProperties, io.github.resilience4j.retry.RetryRegistry retryRegistry, List<io.github.resilience4j.retry.configure.RetryAspectExt> retryAspectExtList, io.github.resilience4j.fallback.FallbackExecutor fallbackExecutor, io.github.resilience4j.spelresolver.SpelResolver spelResolver, io.github.resilience4j.core.ContextAwareScheduledThreadPoolExecutor contextAwareScheduledThreadPoolExecutor) io.github.resilience4j.retry.RetryRegistry
retryRegistry
(io.github.resilience4j.retry.configure.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
(Optional<List<io.github.resilience4j.core.registry.RegistryEventConsumer<io.github.resilience4j.retry.Retry>>> optionalRegistryEventConsumers) io.github.resilience4j.retry.configure.RxJava2RetryAspectExt
-
Field Details
-
retryConfiguration
protected final io.github.resilience4j.retry.configure.RetryConfiguration retryConfiguration
-
-
Constructor Details
-
AbstractRetryConfigurationOnMissingBean
public AbstractRetryConfigurationOnMissingBean()
-
-
Method Details
-
compositeRetryCustomizer
@Bean @Qualifier("compositeRetryCustomizer") @ConditionalOnMissingBean(name="compositeRetryCustomizer") public io.github.resilience4j.common.CompositeCustomizer<io.github.resilience4j.common.retry.configuration.RetryConfigCustomizer> compositeRetryCustomizer(@Autowired(required=false) List<io.github.resilience4j.common.retry.configuration.RetryConfigCustomizer> configCustomizers) -
retryRegistry
@Bean @ConditionalOnMissingBean public io.github.resilience4j.retry.RetryRegistry retryRegistry(io.github.resilience4j.retry.configure.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
-
retryAspect
@Bean @Conditional(io.github.resilience4j.utils.AspectJOnClasspathCondition.class) @ConditionalOnMissingBean public io.github.resilience4j.retry.configure.RetryAspect retryAspect(io.github.resilience4j.retry.configure.RetryConfigurationProperties retryConfigurationProperties, io.github.resilience4j.retry.RetryRegistry retryRegistry, @Autowired(required=false) List<io.github.resilience4j.retry.configure.RetryAspectExt> retryAspectExtList, io.github.resilience4j.fallback.FallbackExecutor fallbackExecutor, io.github.resilience4j.spelresolver.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({io.github.resilience4j.utils.RxJava2OnClasspathCondition.class,io.github.resilience4j.utils.AspectJOnClasspathCondition.class}) @ConditionalOnMissingBean public io.github.resilience4j.retry.configure.RxJava2RetryAspectExt rxJava2RetryAspectExt() -
reactorRetryAspectExt
@Bean @Conditional({io.github.resilience4j.utils.ReactorOnClasspathCondition.class,io.github.resilience4j.utils.AspectJOnClasspathCondition.class}) @ConditionalOnMissingBean public io.github.resilience4j.retry.configure.ReactorRetryAspectExt reactorRetryAspectExt()
-