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.
  • Enum Constant Details

  • Method Details

    • values

      public static NoRestartBackoffTimeStrategy[] 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

      public static NoRestartBackoffTimeStrategy 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 name
      NullPointerException - if the argument is null
    • canRestart

      public boolean canRestart()
      Description copied from interface: RestartBackoffTimeStrategy
      Returns whether a restart should be conducted.
      Specified by:
      canRestart in interface RestartBackoffTimeStrategy
      Returns:
      whether a restart should be conducted
    • getBackoffTime

      public long getBackoffTime()
      Description copied from interface: RestartBackoffTimeStrategy
      Returns the delay to do the restarting.
      Specified by:
      getBackoffTime in interface RestartBackoffTimeStrategy
      Returns:
      the delay to do the restarting
    • notifyFailure

      public boolean notifyFailure(Throwable cause)
      Description copied from interface: RestartBackoffTimeStrategy
      Notify the strategy about the task failure cause.
      Specified by:
      notifyFailure in interface RestartBackoffTimeStrategy
      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

      public String toString()
      Overrides:
      toString in class Enum<NoRestartBackoffTimeStrategy>