public class RetryUtils extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
RetryUtils.Execution<T,E extends Exception> |
static interface |
RetryUtils.RetryCondition<T> |
static class |
RetryUtils.RetryMaterial |
| 构造器和说明 |
|---|
RetryUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
retryWithException(RetryUtils.Execution<T,Exception> execution,
RetryUtils.RetryMaterial retryMaterial)
Execute the given execution with retry
|
public static <T> T retryWithException(RetryUtils.Execution<T,Exception> execution, RetryUtils.RetryMaterial retryMaterial) throws Exception
T - result typeexecution - execution to executeretryMaterial - retry material, defined the condition to retryExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.