|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xebialabs.deployit.plugin.cloud.util.Retrier<T>
public class Retrier<T>
Helps to retry actions which may fail for some reason
| Constructor Summary | |
|---|---|
Retrier(java.util.concurrent.Callable<T> action)
|
|
| Method Summary | |
|---|---|
T |
retryFor(int timeout,
int delay)
Retries an action with a total timeout of timeout seconds for delay seconds delay after each attempt. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Retrier(java.util.concurrent.Callable<T> action)
action - action to be retired| Method Detail |
|---|
public T retryFor(int timeout,
int delay)
throws java.util.concurrent.TimeoutException
timeout seconds for delay seconds delay after each attempt.
java.util.concurrent.TimeoutException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||