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 Details

    • 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