Package org.apache.flink.configuration
Enum RestartStrategyOptions.RestartStrategyType
- java.lang.Object
-
- java.lang.Enum<RestartStrategyOptions.RestartStrategyType>
-
- org.apache.flink.configuration.RestartStrategyOptions.RestartStrategyType
-
- All Implemented Interfaces:
Serializable,Comparable<RestartStrategyOptions.RestartStrategyType>
- Enclosing class:
- RestartStrategyOptions
@Internal public static enum RestartStrategyOptions.RestartStrategyType extends Enum<RestartStrategyOptions.RestartStrategyType>
The restart strategy type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXPONENTIAL_DELAYFAILURE_RATEFIXED_DELAYNO_RESTART_STRATEGY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getAllAvailableValues()TextElement[]getAllTextElement()StringgetMainValue()static RestartStrategyOptions.RestartStrategyTypeof(String value)Return the corresponding RestartStrategyType based on the displayed value.static RestartStrategyOptions.RestartStrategyTypevalueOf(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.
-
-
-
Enum Constant Detail
-
NO_RESTART_STRATEGY
public static final RestartStrategyOptions.RestartStrategyType NO_RESTART_STRATEGY
-
FIXED_DELAY
public static final RestartStrategyOptions.RestartStrategyType FIXED_DELAY
-
FAILURE_RATE
public static final RestartStrategyOptions.RestartStrategyType FAILURE_RATE
-
EXPONENTIAL_DELAY
public static final RestartStrategyOptions.RestartStrategyType EXPONENTIAL_DELAY
-
-
Method Detail
-
values
public static RestartStrategyOptions.RestartStrategyType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RestartStrategyOptions.RestartStrategyType c : RestartStrategyOptions.RestartStrategyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RestartStrategyOptions.RestartStrategyType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
of
public static RestartStrategyOptions.RestartStrategyType of(String value)
Return the corresponding RestartStrategyType based on the displayed value.
-
getMainValue
public String getMainValue()
-
getAllTextElement
public TextElement[] getAllTextElement()
-
-