Package org.apache.solr.common.util
Class RetryUtil
java.lang.Object
org.apache.solr.common.util.RetryUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidretryOnBoolean(long timeoutms, long intervalms, RetryUtil.BooleanRetryCmd cmd) static voidretryOnException(Class<? extends Exception> clazz, long timeoutms, long intervalms, RetryUtil.RetryCmd cmd) static voidretryOnException(Set<Class<? extends Exception>> classes, long timeoutms, long intervalms, RetryUtil.RetryCmd cmd) static voidretryUntil(String errorMessage, int retries, long pauseTime, TimeUnit pauseUnit, RetryUtil.BooleanRetryCmd cmd)
-
Constructor Details
-
RetryUtil
public RetryUtil()
-
-
Method Details
-
retryOnException
public static void retryOnException(Class<? extends Exception> clazz, long timeoutms, long intervalms, RetryUtil.RetryCmd cmd) throws Exception - Throws:
Exception
-
retryOnException
public static void retryOnException(Set<Class<? extends Exception>> classes, long timeoutms, long intervalms, RetryUtil.RetryCmd cmd) throws Exception - Throws:
Exception
-
retryUntil
public static void retryUntil(String errorMessage, int retries, long pauseTime, TimeUnit pauseUnit, RetryUtil.BooleanRetryCmd cmd) throws InterruptedException - Throws:
InterruptedException
-
retryOnBoolean
-