public class RetryingCallbackHelper
extends java.lang.Object
Defaults:
| Modifier and Type | Class and Description |
|---|---|
static interface |
RetryingCallbackHelper.RetryingCallback
Callback interface
|
| Constructor and Description |
|---|
RetryingCallbackHelper()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
doWithRetry(RetryingCallbackHelper.RetryingCallback 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 java.lang.Object doWithRetry(RetryingCallbackHelper.RetryingCallback callback)
callback - The callback containing the unit of work.java.lang.RuntimeException - all checked exceptions are convertedCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.