Package de.galan.commons.util
Class Retryable
java.lang.Object
de.galan.commons.util.Retryable
Invokes a Callable/ExceptionalRunnable until it runs without Exception the specified times of retries.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<V> Vstatic Retryableinfinite()retries(long retries) static Retryableretry(long numberOfRetries) voidrun(ExceptionalRunnable runnable) timeToWait(long millis) timeToWait(String timeToWaitBetween)
-
Field Details
-
DEFAULT_WAIT_TIME
- See Also:
-
INFINITE
public static final long INFINITE- See Also:
-
-
Method Details