|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.ibatis.RetryingCallbackHelper
public class RetryingCallbackHelper
A helper that runs a unit of work, transparently retrying the unit of work if an error occurs.
Defaults:
| Nested Class Summary | |
|---|---|
static interface |
RetryingCallbackHelper.RetryingCallback
Callback interface |
| Constructor Summary | |
|---|---|
RetryingCallbackHelper()
Default constructor. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RetryingCallbackHelper()
| Method Detail |
|---|
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 converted
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||