| Package | Description |
|---|---|
| org.alfresco.po.common.util |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
Utils.retry(Retry<T> retry,
int count)
Helper method to retry the provided
code block, ignoring any Exceptions until either
the code block completes successfully or the maximum number of retries has been reached. |
static <T> T |
Utils.retry(Retry<T> retry,
int count,
Class<? extends Exception>... retryExceptions)
Helper method to retry the provided
code block, ignoring the specified exception types until either
the code block completes successfully or the maximum number of retries has been reached. |
static <T> T |
Utils.retryUntil(Retry<T> retry,
Supplier<Boolean> predicate,
int count)
Helper method to retry the provided
code block until the predicate block returns
true or the maximum number of retries has been reached. |
Copyright © 2005–2016 Alfresco Software. All rights reserved.