ResponseT - response typepublic interface RetryingExecutor<ResponseT>
RetryingFuture, which acts as a facade, hiding from client
code the actual execution of scheduled retry attempts.
Callable in a retriable context.
| Modifier and Type | Method and Description |
|---|---|
RetryingFuture<ResponseT> |
createFuture(Callable<ResponseT> callable)
Creates the
RetryingFuture, which is a facade, returned to the client code to wait for
any retriable operation to complete. |
com.google.api.core.ApiFuture<ResponseT> |
submit(RetryingFuture<ResponseT> retryingFuture)
Submits an attempt for execution.
|
RetryingFuture<ResponseT> createFuture(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 contextcom.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.