Modifier and Type | Method and Description |
---|---|
static <V> ResilientOperation.CheckedCallable<V,java.io.IOException> |
ResilientOperation.getGoogleRequestCallable(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<V> request)
Returns a
ResilientOperation.CheckedCallable that encompasses a AbstractGoogleClientRequest and
can be used to retry the execution for an AbstractGoogleClientRequest. |
Modifier and Type | Method and Description |
---|---|
static <T,X extends java.lang.Exception> |
ResilientOperation.retry(ResilientOperation.CheckedCallable<T,X> callable,
com.google.api.client.util.BackOff backoff,
RetryDeterminer<? super X> retryDet,
java.lang.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 java.lang.Exception> |
ResilientOperation.retry(ResilientOperation.CheckedCallable<T,X> callable,
com.google.api.client.util.BackOff backoff,
RetryDeterminer<? super X> retryDet,
java.lang.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 © 2019. All rights reserved.