public enum RetryPropagation extends Enum<RetryPropagation>
| Enum Constant and Description |
|---|
CREATE_OR_JOIN
If there is no retry-call upper in the callstack, the
SqlRetry annotated method will be executed as a
retry-call, meaning that in case of SQL related errors, the method will be re-executed. |
CREATE_OR_NESTED
Regardless if there is a retry-call upper in the callstack, the
SqlRetry annotated method will be executed
as a retry-call, meaning that in case of SQL related errors, the method will be re-executed. |
JOIN_EXISTING
An existing retry-call is required to join it.
|
| Modifier and Type | Method and Description |
|---|---|
static RetryPropagation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RetryPropagation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RetryPropagation CREATE_OR_JOIN
SqlRetry annotated method will be executed as a
retry-call, meaning that in case of SQL related errors, the method will be re-executed. If there is an existing
retry-call method upper in the callstack (a method also annotated with theSqlRetry annotation), this
method will join it. Joining the retry-call means that if this method fails, the fail will be propagated to the method
upper in the callstack and that method will be retried (and this method will be retried as a part of that retry).
In other words: regardless if the inner or outer method fails, the outer method will be re-executed.public static final RetryPropagation CREATE_OR_NESTED
SqlRetry annotated method will be executed
as a retry-call, meaning that in case of SQL related errors, the method will be re-executed.
In other words: If the method fails, the error will be caught, and the method will be re-executed.
If there is another retry-call upper in the callstack, this error remains unkown for it, unless all retry attempt
are used up.public static final RetryPropagation JOIN_EXISTING
SqlRetry annotated method upper in the callstack.public static RetryPropagation[] values()
for (RetryPropagation c : RetryPropagation.values()) System.out.println(c);
public static RetryPropagation valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2024 The Apache Software Foundation. All rights reserved.