@Singleton public class DigitalOcean2RateLimitRetryHandler extends RateLimitRetryHandler
loggerALWAYS_RETRY, NEVER_RETRY| Constructor and Description |
|---|
DigitalOcean2RateLimitRetryHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.common.base.Optional<Long> |
millisToNextAvailableRequest(HttpCommand command,
HttpResponse response)
Compute the number of milliseconds that must pass until a request can be
performed.
|
static long |
millisUntilNextAvailableRequest(long epochForNextAvailableRequest) |
getMaxRateLimitWait, getRetryCountLimit, rateLimitErrorStatus, shouldRetryRequestprotected com.google.common.base.Optional<Long> millisToNextAvailableRequest(HttpCommand command, HttpResponse response)
RateLimitRetryHandlermillisToNextAvailableRequest in class RateLimitRetryHandlercommand - The command being executed.response - The rate-limit error response.public static long millisUntilNextAvailableRequest(long epochForNextAvailableRequest)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.