public class Retrier<T>
extends java.lang.Object
| Constructor and Description |
|---|
Retrier(java.util.concurrent.Callable<T> action) |
public Retrier(java.util.concurrent.Callable<T> action)
action - action to be retiredpublic T retryFor(int timeout, int delay) throws java.util.concurrent.TimeoutException
timeout seconds for delay seconds delay after each attempt.java.util.concurrent.TimeoutException