public class RetryLoops extends Object
| 构造器和说明 |
|---|
RetryLoops() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
complete() |
void |
fireException(Exception e,
RetryPolicy retryPolicy) |
static <R> R |
invokeWithRetry(Callable<R> task,
RetryPolicy retryPolicy) |
boolean |
shouldContinue() |
public static <R> R invokeWithRetry(Callable<R> task, RetryPolicy retryPolicy) throws Exception
Exceptionpublic void fireException(Exception e, RetryPolicy retryPolicy) throws Exception
Exceptionpublic boolean shouldContinue()
public void complete()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.