public static enum BackoffTimeCalculator.BackoffPolicy extends Enum<BackoffTimeCalculator.BackoffPolicy>
| Enum Constant and Description |
|---|
EXPONENTIAL_BACKOFF
Backoff for a duration which is calculated as exponential function of
the no of time the process is backing offa
|
FIXED_BACKOFF
Backoff for fixed duration
|
| Modifier and Type | Method and Description |
|---|---|
static BackoffTimeCalculator.BackoffPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BackoffTimeCalculator.BackoffPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BackoffTimeCalculator.BackoffPolicy FIXED_BACKOFF
public static final BackoffTimeCalculator.BackoffPolicy EXPONENTIAL_BACKOFF
public static BackoffTimeCalculator.BackoffPolicy[] values()
for (BackoffTimeCalculator.BackoffPolicy c : BackoffTimeCalculator.BackoffPolicy.values()) System.out.println(c);
public static BackoffTimeCalculator.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 nullCopyright © 2019. All rights reserved.