ResponseT- response type
public interface RetryingExecutor<ResponseT>
RetryingFuture, which acts as a facade, hiding from client code the actual execution of scheduled retry attempts.
Callablein a retriable context.
|Modifier and Type||Method and Description|
Submits an attempt for execution.
RetryingFuture<ResponseT> createFuture(java.util.concurrent.Callable<ResponseT> callable)
RetryingFuture, which is a facade, returned to the client code to wait for any retriable operation to complete.
callable- the actual callable, which should be executed in a retriable context
com.google.api.core.ApiFuture<ResponseT> submit(RetryingFuture<ResponseT> retryingFuture)
retryingFuture- the future previously returned by
createFuture(Callable)and reused for each subsequent attempt of same operation.