Interface RetryPolicy

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean canRetry​(int errorCode)
      Returns whether or not a Reply containing an Error with the given error code can be retried.
      double getRetryDelay​(int retry)
      Returns the number of seconds to delay resending a message.
    • Method Detail

      • canRetry

        boolean canRetry​(int errorCode)
        Returns whether or not a Reply containing an Error with the given error code can be retried. This method is invoked once for each error in a reply.
        Parameters:
        errorCode - The code to check.
        Returns:
        True if the message can be resent.
      • getRetryDelay

        double getRetryDelay​(int retry)
        Returns the number of seconds to delay resending a message.
        Parameters:
        retry - The retry attempt.
        Returns:
        The delay in seconds.