public static enum JobRequest.BackoffPolicy extends Enum<JobRequest.BackoffPolicy>
Enum Constant and Description |
---|
EXPONENTIAL
backoff = initial_backoff * 2 ^ (numFailures - 1).
|
LINEAR
backoff = numFailures * initial_backoff.
|
Modifier and Type | Method and Description |
---|---|
static JobRequest.BackoffPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JobRequest.BackoffPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobRequest.BackoffPolicy LINEAR
public static final JobRequest.BackoffPolicy EXPONENTIAL
public static JobRequest.BackoffPolicy[] values()
for (JobRequest.BackoffPolicy c : JobRequest.BackoffPolicy.values()) System.out.println(c);
public static JobRequest.BackoffPolicy 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