T - Type of return value for checked function.public class RetryHelper<T,R extends Exception> extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static interface |
RetryHelper.CheckedFunction<T,R extends Exception>
Checked function interface.
|
| Constructor and Description |
|---|
RetryHelper(long maxRetryIntervalMs,
int maxRetryNumbers,
long initialRetryIntervalMs,
List<Class<? extends Exception>> retryExceptions,
String taskInfo) |
RetryHelper(long maxRetryIntervalMs,
int maxRetryNumbers,
long initialRetryIntervalMs,
String retryExceptions) |
RetryHelper(long maxRetryIntervalMs,
int maxRetryNumbers,
long initialRetryIntervalMs,
String retryExceptions,
String taskInfo) |
| Modifier and Type | Method and Description |
|---|---|
T |
start() |
T |
start(RetryHelper.CheckedFunction<T,R> func) |
RetryHelper<T,R> |
tryWith(RetryHelper.CheckedFunction<T,R> func) |
public RetryHelper(long maxRetryIntervalMs,
int maxRetryNumbers,
long initialRetryIntervalMs,
List<Class<? extends Exception>> retryExceptions,
String taskInfo)
public RetryHelper(long maxRetryIntervalMs,
int maxRetryNumbers,
long initialRetryIntervalMs,
String retryExceptions)
Copyright © 2025 The Apache Software Foundation. All rights reserved.