Modifier and Type | Method and Description |
---|---|
static <V> ResilientOperation.CheckedCallable<V,IOException> |
ResilientOperation.getGoogleRequestCallable(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<V> request)
Returns a
ResilientOperation.CheckedCallable that returns encompasses a
AbstractGoogleClientRequest and can be used to retry the execute for a
AbstractGoogleClientReqest. |
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 © 2018. All rights reserved.