public enum RetryDecision extends Enum<RetryDecision>
RetryPolicy
on how to handle a retry.RetryVerdict.getRetryDecision()
Enum Constant and Description |
---|
IGNORE
Don't retry and return an empty result set to the calling code.
|
RETHROW
Rethrow to the calling code, as the result of the execute operation.
|
RETRY_NEXT
Retry the operation on the next available node in the query plan (if any).
|
RETRY_SAME
Retry the operation on the same node.
|
Modifier and Type | Method and Description |
---|---|
static RetryDecision |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RetryDecision[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RetryDecision RETRY_SAME
public static final RetryDecision RETRY_NEXT
public static final RetryDecision RETHROW
public static final RetryDecision IGNORE
public static RetryDecision[] values()
for (RetryDecision c : RetryDecision.values()) System.out.println(c);
public static RetryDecision 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 © 2017–2024. All rights reserved.