public class RetryUtil extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
RetryUtil.BooleanRetryCmd |
static interface |
RetryUtil.RetryCmd |
Constructor and Description |
---|
RetryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
retryOnBoolean(long timeoutms,
long intervalms,
RetryUtil.BooleanRetryCmd cmd) |
static void |
retryOnThrowable(Class clazz,
long timeoutms,
long intervalms,
RetryUtil.RetryCmd cmd) |
static void |
retryOnThrowable(Set<Class> classes,
long timeoutms,
long intervalms,
RetryUtil.RetryCmd cmd) |
static void |
retryUntil(String errorMessage,
int retries,
long pauseTime,
TimeUnit pauseUnit,
RetryUtil.BooleanRetryCmd cmd) |
public static void retryOnThrowable(Class clazz, long timeoutms, long intervalms, RetryUtil.RetryCmd cmd) throws Throwable
Throwable
public static void retryOnThrowable(Set<Class> classes, long timeoutms, long intervalms, RetryUtil.RetryCmd cmd) throws Throwable
Throwable
public static void retryUntil(String errorMessage, int retries, long pauseTime, TimeUnit pauseUnit, RetryUtil.BooleanRetryCmd cmd) throws InterruptedException
InterruptedException
public static void retryOnBoolean(long timeoutms, long intervalms, RetryUtil.BooleanRetryCmd cmd)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.