T - The type of the class.public class RetryCallHelper<T> extends Object implements FutureDone<T>
retry-until-resolved is provided by .AsyncFramework#retryUntilResolved(java.util.concurrent.Callable,
eu.toolchain.async.RetryPolicy).
| Constructor and Description |
|---|
RetryCallHelper(long start,
ScheduledExecutorService scheduler,
Callable<? extends AsyncFuture<? extends T>> callable,
RetryPolicy.Instance policyInstance,
ResolvableFuture<T> future,
ClockSource clockSource) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelled() |
void |
failed(Throwable cause) |
void |
finished()
Must be called when the target future finishes to clean up any potential scheduled _future_
events.
|
List<Long> |
getBackoffTimings() |
List<RetryException> |
getErrors() |
void |
next() |
void |
resolved(T result) |
public RetryCallHelper(long start,
ScheduledExecutorService scheduler,
Callable<? extends AsyncFuture<? extends T>> callable,
RetryPolicy.Instance policyInstance,
ResolvableFuture<T> future,
ClockSource clockSource)
public List<RetryException> getErrors()
public void failed(Throwable cause) throws Exception
failed in interface FutureDone<T>Exceptionpublic void resolved(T result) throws Exception
resolved in interface FutureDone<T>Exceptionpublic void cancelled()
throws Exception
cancelled in interface FutureDone<T>Exceptionpublic void next()
public void finished()
Copyright © 2017. All rights reserved.