| Modifier and Type | Field and Description |
|---|---|
static RetryDeterminer<Exception> |
RetryDeterminer.DEFAULT
Retries when either SOCKET_ERRORS or SERVER_ERRORS would retry.
|
static RetryDeterminer<IOException> |
RetryDeterminer.RATE_LIMIT_ERRORS
A rate limited determiner that uses a generic ApiErrorExtractor.
|
static RetryDeterminer<IOException> |
RetryDeterminer.SERVER_ERRORS
Server errors RetryDeterminer decides to retry on HttpResponseExceptions that return a 500.
|
static RetryDeterminer<IOException> |
RetryDeterminer.SOCKET_ERRORS
Socket errors retry determiner retries on socket exceptions.
|
| Modifier and Type | Method and Description |
|---|---|
static RetryDeterminer<IOException> |
RetryDeterminer.createRateLimitedRetryDeterminer(ApiErrorExtractor errorExtractor)
A
RetryDeterminer that retries on rate limited errors as determined by the
provided ApiErrorExtractor. |
| Modifier and Type | Method and Description |
|---|---|
static <T,X extends Exception> |
ResilientOperation.retry(ResilientOperation.CheckedCallable<T,X> callable,
com.google.api.client.util.BackOff backoff,
RetryDeterminer<? super X> retryDet,
Class<X> classType)
Retries the given executable function in the case of transient errors defined by the
RetryDeterminer and uses default sleeper.
|
static <T,X extends Exception> |
ResilientOperation.retry(ResilientOperation.CheckedCallable<T,X> callable,
com.google.api.client.util.BackOff backoff,
RetryDeterminer<? super X> retryDet,
Class<X> classType,
com.google.api.client.util.Sleeper sleeper)
Retries the given executable function in the case of transient errors defined by the
RetryDeterminer.
|
Copyright © 2016. All rights reserved.