パッケージ io.digdag.util
クラス RetryExecutor
- java.lang.Object
-
- io.digdag.util.RetryExecutor
-
public class RetryExecutor extends java.lang.Object
-
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ クラス 説明 static interfaceRetryExecutor.GiveupActionstatic interfaceRetryExecutor.RetryActionstatic classRetryExecutor.RetryGiveupExceptionstatic interfaceRetryExecutor.RetryPredicate
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 RetryExecutoronGiveup(RetryExecutor.GiveupAction function)RetryExecutoronRetry(RetryExecutor.RetryAction function)static RetryExecutorretryExecutor()RetryExecutorretryIf(RetryExecutor.RetryPredicate function)voidrun(java.lang.Runnable op)<T> Trun(java.util.concurrent.Callable<T> op)voidrunInterruptible(java.lang.Runnable op)<T> TrunInterruptible(java.util.concurrent.Callable<T> op)RetryExecutorwithInitialRetryWait(int msec)RetryExecutorwithMaxRetryWait(int msec)RetryExecutorwithRetryLimit(int count)RetryExecutorwithWaitGrowRate(double rate)
-
-
-
メソッドの詳細
-
retryExecutor
public static RetryExecutor retryExecutor()
-
withRetryLimit
public RetryExecutor withRetryLimit(int count)
-
withInitialRetryWait
public RetryExecutor withInitialRetryWait(int msec)
-
withMaxRetryWait
public RetryExecutor withMaxRetryWait(int msec)
-
withWaitGrowRate
public RetryExecutor withWaitGrowRate(double rate)
-
retryIf
public RetryExecutor retryIf(RetryExecutor.RetryPredicate function)
-
onRetry
public RetryExecutor onRetry(RetryExecutor.RetryAction function)
-
onGiveup
public RetryExecutor onGiveup(RetryExecutor.GiveupAction function)
-
runInterruptible
public <T> T runInterruptible(java.util.concurrent.Callable<T> op) throws java.lang.InterruptedException, RetryExecutor.RetryGiveupException- 例外:
java.lang.InterruptedExceptionRetryExecutor.RetryGiveupException
-
runInterruptible
public void runInterruptible(java.lang.Runnable op) throws java.lang.InterruptedException, RetryExecutor.RetryGiveupException- 例外:
java.lang.InterruptedExceptionRetryExecutor.RetryGiveupException
-
run
public <T> T run(java.util.concurrent.Callable<T> op) throws RetryExecutor.RetryGiveupException
-
run
public void run(java.lang.Runnable op) throws RetryExecutor.RetryGiveupException
-
-