Class RetryTopicConfigurationSupport.BlockingRetriesConfigurer
java.lang.Object
org.springframework.kafka.retrytopic.RetryTopicConfigurationSupport.BlockingRetriesConfigurer
- Enclosing class:
- RetryTopicConfigurationSupport
Configure blocking retries to be used along non-blocking.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet theBackOff
that should be used with the blocking retry mechanism.Set the exceptions that should be retried by the blocking retry mechanism.
-
Constructor Details
-
BlockingRetriesConfigurer
public BlockingRetriesConfigurer()
-
-
Method Details
-
retryOn
@SafeVarargs public final RetryTopicConfigurationSupport.BlockingRetriesConfigurer retryOn(Class<? extends Exception>... exceptions) Set the exceptions that should be retried by the blocking retry mechanism.- Parameters:
exceptions
- the exceptions.- Returns:
- the configurer.
- See Also:
-
backOff
Set theBackOff
that should be used with the blocking retry mechanism. By default, aFixedBackOff
with 0 delay and 9 retry attempts is configured. Note that this only has any effect for exceptions specified with theretryOn(java.lang.Class<? extends java.lang.Exception>...)
method - by default blocking retries are disabled when using the non-blocking retries feature.- Parameters:
backoff
- theBackOff
instance.- Returns:
- the configurer.
- See Also:
-