-
- All Implemented Interfaces:
public interface RetryPolicyThe 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 BooleanshouldRetry(Integer attempt, ChatError error)Determines whether the call should be retried. abstract IntegerretryTimeout(Integer attempt, ChatError error)Provides a timeout used to delay the next call. -
-
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.
-
-
-
-