public abstract class ProcessUtils extends Object
|Modifier and Type||Method and Description|
Executes an action, with potential retry in case of an exception.
public static void executeWithRetry(Runnable runnable, Predicate<RuntimeException> retryPredicate, long timeout, TimeUnit timeUnit, long retryInterval)
runnable- action to execute
retryPredicate- predicate to determine if the action should be retried based on the exception
timeout- timeout for the retries
timeUnit- unit for the timeout
retryInterval- time to wait between retries of the action
Copyright © 2010–2020. All rights reserved.