T
- result type of the retried operationpublic class RetryCallHelper<T> extends Object implements Handle<T>
retry-until-completed is provided by
Async.retryUntilCompleted(java.util.concurrent.Callable, RetryPolicy)
.
Constructor and Description |
---|
RetryCallHelper(long start,
ScheduledExecutorService scheduler,
Callable<? extends Stage<? extends T>> callable,
Supplier<RetryDecision> policyInstance,
Completable<T> future,
ClockSource clockSource) |
Modifier and Type | Method and Description |
---|---|
void |
cancelled()
Handle to be called when the underlying stage is cancelled.
|
void |
completed(T result)
Handle to be called when the underlying stage is completed.
|
void |
failed(Throwable cause)
Handle to be called when the underlying stage is failed.
|
void |
finished()
Must be called when the target completable finishes to clean up any potential scheduled _future_
events.
|
List<RetryException> |
getErrors() |
void |
next() |
public RetryCallHelper(long start, ScheduledExecutorService scheduler, Callable<? extends Stage<? extends T>> callable, Supplier<RetryDecision> policyInstance, Completable<T> future, ClockSource clockSource)
public List<RetryException> getErrors()
public void failed(Throwable cause)
Handle
public void completed(T result)
Handle
public void cancelled()
Handle
public void next()
public void finished()
Copyright © 2017. All rights reserved.