java.lang.Object
org.seppiko.commons.utils.concurrent.RetryableTask
Retry task
- Author:
- Leonard Woo
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tcaller(RetryCallable<T> callable, int times, long delay, TimeUnit unit) Retry task caller
-
Method Details
-
caller
Retry task callerIf
<T>is Boolean than true, or CharSequence than not null or empty, or Object than not null break retry loop.caller will ignore runtime exception.
- Type Parameters:
T- task return type- Parameters:
callable- task retry callabletimes- retry timesdelay- retry delayunit- delay time util- Returns:
- task callable result, failure is
null
-