| Package | Description |
|---|---|
| com.google.cloud.hadoop.util |
| Modifier and Type | Field and Description |
|---|---|
static RetryDeterminer<Exception> |
RetryDeterminer.ALL_ERRORS
Always retries.
|
static RetryDeterminer<Exception> |
RetryDeterminer.DEFAULT
Retries exception when either
SOCKET_ERRORS or SERVER_ERRORS would retry. |
static RetryDeterminer<IOException> |
RetryDeterminer.RATE_LIMIT_ERRORS
A rate limited determiner that uses a default
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 <T,X extends Exception> |
ResilientOperation.retry(Callable<T> 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(Callable<T> 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 © 2022. All rights reserved.