Interface IRetryStrategy
- All Known Implementing Classes:
RetryStrategy
public interface IRetryStrategy
Strategy for computing how long to wait before each retry of a failed read, write or operation.
-
Method Summary
Modifier and TypeMethodDescriptionlonggetRetryDelay(int retryCount, long initialDelay) Returns the amount of time to wait (in milliseconds) before retrying the operation.
-
Method Details
-
getRetryDelay
long getRetryDelay(int retryCount, long initialDelay) Returns the amount of time to wait (in milliseconds) before retrying the operation.- Parameters:
retryCount- The number of retry attempts that have already been made starting with zero (0).initialDelay- The amount of time (in milliseconds) to wait before the first retry attempt.- Returns:
- The amount of time to wait or
initialDelayif this is the first retry attempt.
-