@param error Error thrown by Asana request @param retryCount Number of times this request has been retried
(RetryableAsanaError error, int retryCount)
| 225 | * @param retryCount Number of times this request has been retried |
| 226 | */ |
| 227 | private void handleRetryableError(RetryableAsanaError error, int retryCount) { |
| 228 | if (error instanceof RateLimitEnforcedError) { |
| 229 | this.dispatcher.sleep(((RateLimitEnforcedError) error).retryAfter); |
| 230 | } else { |
| 231 | this.dispatcher.sleep((long) (RETRY_DELAY * Math.pow(RETRY_BACKOFF, retryCount))); |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | |
| 236 | private String clientVersion() { |