@Internal public static enum RestartStrategyOptions.RestartStrategyType extends Enum<RestartStrategyOptions.RestartStrategyType>
Enum Constant and Description |
---|
EXPONENTIAL_DELAY |
FAILURE_RATE |
FIXED_DELAY |
NO_RESTART_STRATEGY |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAllAvailableValues() |
TextElement[] |
getAllTextElement() |
String |
getMainValue() |
static RestartStrategyOptions.RestartStrategyType |
of(String value)
Return the corresponding RestartStrategyType based on the displayed value.
|
static RestartStrategyOptions.RestartStrategyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RestartStrategyOptions.RestartStrategyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestartStrategyOptions.RestartStrategyType NO_RESTART_STRATEGY
public static final RestartStrategyOptions.RestartStrategyType FIXED_DELAY
public static final RestartStrategyOptions.RestartStrategyType FAILURE_RATE
public static final RestartStrategyOptions.RestartStrategyType EXPONENTIAL_DELAY
public static RestartStrategyOptions.RestartStrategyType[] values()
for (RestartStrategyOptions.RestartStrategyType c : RestartStrategyOptions.RestartStrategyType.values()) System.out.println(c);
public static RestartStrategyOptions.RestartStrategyType 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 static RestartStrategyOptions.RestartStrategyType of(String value)
public String getMainValue()
public TextElement[] getAllTextElement()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.