Enum NoRestartBackoffTimeStrategy
java.lang.Object
java.lang.Enum<NoRestartBackoffTimeStrategy>
org.apache.flink.runtime.executiongraph.failover.NoRestartBackoffTimeStrategy
- All Implemented Interfaces:
Serializable,Comparable<NoRestartBackoffTimeStrategy>,RestartBackoffTimeStrategy
public enum NoRestartBackoffTimeStrategy
extends Enum<NoRestartBackoffTimeStrategy>
implements RestartBackoffTimeStrategy
Restart strategy which does not restart tasks when tasks fail.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe factory for creatingNoRestartBackoffTimeStrategy.Nested classes/interfaces inherited from interface org.apache.flink.runtime.executiongraph.failover.RestartBackoffTimeStrategy
RestartBackoffTimeStrategy.Factory -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether a restart should be conducted.longReturns the delay to do the restarting.booleannotifyFailure(Throwable cause) Notify the strategy about the task failure cause.toString()static NoRestartBackoffTimeStrategyReturns the enum constant of this type with the specified name.static NoRestartBackoffTimeStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
canRestart
public boolean canRestart()Description copied from interface:RestartBackoffTimeStrategyReturns whether a restart should be conducted.- Specified by:
canRestartin interfaceRestartBackoffTimeStrategy- Returns:
- whether a restart should be conducted
-
getBackoffTime
public long getBackoffTime()Description copied from interface:RestartBackoffTimeStrategyReturns the delay to do the restarting.- Specified by:
getBackoffTimein interfaceRestartBackoffTimeStrategy- Returns:
- the delay to do the restarting
-
notifyFailure
Description copied from interface:RestartBackoffTimeStrategyNotify the strategy about the task failure cause.- Specified by:
notifyFailurein interfaceRestartBackoffTimeStrategy- Parameters:
cause- of the task failure- Returns:
- True means that the current failure is the first one after the most-recent failure handling happened, false means that there has been a failure before that was not handled, yet, and the current failure will be considered in a combined failure handling effort.
-
toString
- Overrides:
toStringin classEnum<NoRestartBackoffTimeStrategy>
-