类的使用
tech.testnx.cah.common.retry.Retryer.Builder
-
使用Retryer.Builder的程序包 程序包 说明 tech.testnx.cah.common.retry -
-
tech.testnx.cah.common.retry中Retryer.Builder的使用
返回Retryer.Builder的tech.testnx.cah.common.retry中的方法 修饰符和类型 方法 说明 Retryer.Builder<V>Retryer.Builder. withCondition(Predicate<V> condition)Stop the retrying by test the condition.Retryer.Builder<V>Retryer.Builder. withIntervalWaitInSecond(int intervalWaitInSecond)Interval waiting time in second between each retryingRetryer.Builder<V>Retryer.Builder. withMaxRetry(int maxRetry)Max Retry countRetryer.Builder<V>Retryer.Builder. withProcedureRetry(int procedureRetry)Procedure retry countRetryer.Builder<V>Retryer.Builder. withRecoveryProcedure(Callable<Boolean> recoveryProcedure)Set a recovery procedure after each retrying.Retryer.Builder<V>Retryer.Builder. withStopByException(boolean stopByException)Stop retrying if stopByException is true and any exception is thrown
Default set value is false, so continue retry if exceptionRetryer.Builder<V>Retryer.Builder. withStopProcedure(Callable<Boolean> stopProcedure)Set a procedure after stop retrying
Do nothing by default
-