public static final class Callables.RetryPauseWithTimeout<T> extends Object implements Callables.PreRetryCallback<T>
Constructor and Description |
---|
Callables.RetryPauseWithTimeout(int nrImmediateRetries,
int maxRetryWaitMillis,
long deadline,
Callables.PreRetryCallback<T> doBeforeRetry) |
public Callables.RetryPauseWithTimeout(int nrImmediateRetries, int maxRetryWaitMillis, long deadline, @Nullable Callables.PreRetryCallback<T> doBeforeRetry)
public boolean call(Exception lastException, T lastResult) throws InterruptedException
Callables.PreRetryCallback
call
in interface Callables.PreRetryCallback<T>
lastException
- - last exception encountered, if null, retry does not happen because of exception.lastResult
- - if lastException is null this value represents the last returned result.InterruptedException
Copyright © 2014. All rights reserved.