public static enum QueryInfo.RetryBehaviour extends Enum<QueryInfo.RetryBehaviour>
Enum Constant and Description |
---|
TRY_ALL
All configured data sources will be tried, whether the previous one failed or was marked as unavailable.
|
TRY_FIRST_AVAILABLE
The first available data source will be tried, but if it fails the request will not be retried on subsequent data sources.
|
TRY_FIRST_ONLY
Only the first data source will ever be tried.
|
Modifier and Type | Method and Description |
---|---|
static QueryInfo.RetryBehaviour |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QueryInfo.RetryBehaviour[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QueryInfo.RetryBehaviour TRY_ALL
public static final QueryInfo.RetryBehaviour TRY_FIRST_AVAILABLE
public static final QueryInfo.RetryBehaviour TRY_FIRST_ONLY
public static QueryInfo.RetryBehaviour[] values()
for (QueryInfo.RetryBehaviour c : QueryInfo.RetryBehaviour.values()) System.out.println(c);
public static QueryInfo.RetryBehaviour 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 null