public class RetryingCallbackHelper extends Object
Defaults:
| Modifier and Type | Class and Description |
|---|---|
static interface |
RetryingCallbackHelper.RetryingCallback<Result>
Callback interface
|
| Constructor and Description |
|---|
RetryingCallbackHelper()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<R> R |
doWithRetry(RetryingCallbackHelper.RetryingCallback<R> callback)
Execute a callback until it succeeds, fails or until a maximum number of retries have
been attempted.
|
void |
setMaxRetries(int maxRetries)
Set the maximimum number of retries.
|
void |
setRetryWaitMs(int retryWaitMs) |
public void setMaxRetries(int maxRetries)
public void setRetryWaitMs(int retryWaitMs)
public <R> R doWithRetry(RetryingCallbackHelper.RetryingCallback<R> callback)
callback - The callback containing the unit of work.RuntimeException - all checked exceptions are convertedCopyright © 2005–2018 Alfresco Software. All rights reserved.