Class RetryTopicConfigurationSupport.BlockingRetriesConfigurer
- java.lang.Object
-
- org.springframework.kafka.retrytopic.RetryTopicConfigurationSupport.BlockingRetriesConfigurer
-
- Enclosing class:
- RetryTopicConfigurationSupport
public static class RetryTopicConfigurationSupport.BlockingRetriesConfigurer extends java.lang.Object
Configure blocking retries to be used along non-blocking.
-
-
Constructor Summary
Constructors Constructor Description BlockingRetriesConfigurer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RetryTopicConfigurationSupport.BlockingRetriesConfigurer
backOff(org.springframework.util.backoff.BackOff backoff)
Set theBackOff
that should be used with the blocking retry mechanism.RetryTopicConfigurationSupport.BlockingRetriesConfigurer
retryOn(java.lang.Class<? extends java.lang.Exception>... exceptions)
Set the exceptions that should be retried by the blocking retry mechanism.
-
-
-
Method Detail
-
retryOn
@SafeVarargs public final RetryTopicConfigurationSupport.BlockingRetriesConfigurer retryOn(java.lang.Class<? extends java.lang.Exception>... exceptions)
Set the exceptions that should be retried by the blocking retry mechanism.- Parameters:
exceptions
- the exceptions.- Returns:
- the configurer.
- See Also:
DefaultErrorHandler
-
backOff
public RetryTopicConfigurationSupport.BlockingRetriesConfigurer backOff(org.springframework.util.backoff.BackOff 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:
DefaultErrorHandler
-
-