Package 

Interface RetryPolicy

  • All Implemented Interfaces:

    
    public interface RetryPolicy
    
                        

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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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
    • Constructor Detail

    • 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.