public static enum HandlerException.RetryBehavior extends java.lang.Enum<HandlerException.RetryBehavior>
HandlerException. If not specified, retry behavior is determined from the error type. For
example HandlerException.ErrorType.INTERNAL is not retryable by default unless
specified otherwise.| Enum Constant and Description |
|---|
NON_RETRYABLE
Indicates that a
HandlerException should not be retried, overriding the default retry
behavior of the HandlerException.ErrorType. |
RETRYABLE
Indicates that a
HandlerException should be retried, overriding the default retry
behavior of the HandlerException.ErrorType. |
UNSPECIFIED
Indicates the retry behavior for a
HandlerException is determined by the HandlerException.ErrorType. |
| Modifier and Type | Method and Description |
|---|---|
static HandlerException.RetryBehavior |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HandlerException.RetryBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HandlerException.RetryBehavior UNSPECIFIED
HandlerException is determined by the HandlerException.ErrorType.public static final HandlerException.RetryBehavior RETRYABLE
HandlerException should be retried, overriding the default retry
behavior of the HandlerException.ErrorType.public static final HandlerException.RetryBehavior NON_RETRYABLE
HandlerException should not be retried, overriding the default retry
behavior of the HandlerException.ErrorType.public static HandlerException.RetryBehavior[] values()
for (HandlerException.RetryBehavior c : HandlerException.RetryBehavior.values()) System.out.println(c);
public static HandlerException.RetryBehavior valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null