Package | Description |
---|---|
com.atlassian.jira.user.anonymize |
Modifier and Type | Method and Description |
---|---|
static Retry<com.atlassian.jira.user.anonymize.Retry.NullReturn> |
Retry.from(Runnable runnable) |
static <T> Retry<T> |
Retry.from(Supplier<T> supplier) |
Retry<T> |
Retry.onException(java.util.function.Consumer<Exception> exceptionHandler)
Sets the handler function that will be called every time the
closure throws an exception -- passing that exception as an
argument -- even if there're retries left.
|
Retry<T> |
Retry.onFail(java.util.function.Consumer<Exception> failureHandler)
Sets the the handler function that will be called after execution of the closure had
failed and the number of retries is exhausted.
|
Retry<T> |
Retry.onSuccess(java.util.function.Consumer<Integer> successHandler)
Sets the function called after successful execution of the
closure.
|
Retry |
Retry.rethrowOnFail() |
Copyright © 2002-2020 Atlassian. All Rights Reserved.