public class RetryException extends DbxException
getBackoffMillis()
).Constructor and Description |
---|
RetryException(java.lang.String requestId,
java.lang.String message)
Creates an instance of this exception with no retry backoff.
|
RetryException(java.lang.String requestId,
java.lang.String message,
long backoff,
java.util.concurrent.TimeUnit unit)
Creates an instance of this exception with the given retry backoff.
|
Modifier and Type | Method and Description |
---|---|
long |
getBackoffMillis()
Returns the number of milliseconds the client should backoff before retrying the request.
|
getRequestId
public RetryException(java.lang.String requestId, java.lang.String message)
requestId
- ID assigned to request by Dropbox serversmessage
- Error messagepublic RetryException(java.lang.String requestId, java.lang.String message, long backoff, java.util.concurrent.TimeUnit unit)
requestId
- ID assigned to request by Dropbox serversmessage
- Error messagebackoff
- amount of time to backoff before retrying the requestunit
- unit of time for backoff