Package 

Interface RetryPolicy


  • 
    public interface RetryPolicy
    
                        

    The retry policy is being used to determine if and when the call should be retried if a temporary error occurred.

    • Method Summary

      Modifier and Type Method Description
      abstract Boolean shouldRetry(Integer attempt, ChatError error) Determines whether the call should be retried.
      abstract Integer retryTimeout(Integer attempt, ChatError error) Provides a timeout used to delay the next call.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • shouldRetry

         abstract Boolean shouldRetry(Integer attempt, ChatError error)

        Determines whether the call should be retried.

        Parameters:
        attempt - Current retry attempt.
        error - The error returned by the previous attempt.
      • retryTimeout

         abstract Integer retryTimeout(Integer attempt, ChatError error)

        Provides a timeout used to delay the next call.

        Parameters:
        attempt - Current retry attempt.
        error - The error returned by the previous attempt.