public enum RetryOption extends Enum<RetryOption>
| Enum Constant and Description |
|---|
DEFAULT
To use global httpMethods whitelist to determine if request needs retrying.
|
DISABLE
To disable retries for the request.
|
ENABLE_FOR_HTTP_METHOD
To retry request, ignoring httpMethods whitelist.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRetryAllowed(boolean isWhitelistedRequestMethod)
Determines whether retrying for the request is allowed or not.
|
static RetryOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RetryOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RetryOption ENABLE_FOR_HTTP_METHOD
public static final RetryOption DISABLE
public static final RetryOption DEFAULT
public static RetryOption[] values()
for (RetryOption c : RetryOption.values()) System.out.println(c);
public static RetryOption 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 nullpublic boolean isRetryAllowed(boolean isWhitelistedRequestMethod)
isWhitelistedRequestMethod - flag if the global list of HTTP method contains the request
method.Copyright © 2022. All rights reserved.