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:
- 4.8.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RetryResult
retryBindingRecovery(RetryContext context)
Retry a failed binding recovery operation.RetryResult
retryConsumerRecovery(RetryContext context)
Retry a failed consumer recovery operation.RetryResult
retryExchangeRecovery(RetryContext context)
Retry a failed exchange recovery operation.RetryResult
retryQueueRecovery(RetryContext context)
Retry a failed queue recovery operation.
-
-
-
Method Detail
-
retryQueueRecovery
RetryResult retryQueueRecovery(RetryContext context) throws Exception
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
RetryResult retryExchangeRecovery(RetryContext context) throws Exception
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
RetryResult retryBindingRecovery(RetryContext context) throws Exception
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
RetryResult retryConsumerRecovery(RetryContext context) throws Exception
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
-
-