Interface RetryHandler
- All Known Implementing Classes:
DefaultRetryHandler
public interface RetryHandler
Contract to retry failed operations during topology recovery.
Not all operations have to be retried, it's a decision of the
underlying implementation.
- Since:
- 5.4.0
-
Method Summary
Modifier and TypeMethodDescriptionretryBindingRecovery
(RetryContext context) Retry a failed binding recovery operation.retryConsumerRecovery
(RetryContext context) Retry a failed consumer recovery operation.retryExchangeRecovery
(RetryContext context) Retry a failed exchange recovery operation.retryQueueRecovery
(RetryContext context) Retry a failed queue recovery operation.
-
Method Details
-
retryQueueRecovery
Retry a failed queue recovery operation.- Parameters:
context
- the context of the retry- Returns:
- the result of the retry attempt
- Throws:
Exception
- if the retry fails
-
retryExchangeRecovery
Retry a failed exchange recovery operation.- Parameters:
context
- the context of the retry- Returns:
- the result of the retry attempt
- Throws:
Exception
- if the retry fails
-
retryBindingRecovery
Retry a failed binding recovery operation.- Parameters:
context
- the context of the retry- Returns:
- the result of the retry attempt
- Throws:
Exception
- if the retry fails
-
retryConsumerRecovery
Retry a failed consumer recovery operation.- Parameters:
context
- the context of the retry- Returns:
- the result of the retry attempt
- Throws:
Exception
- if the retry fails
-