Enum Class TimeTravelType

java.lang.Object
java.lang.Enum<TimeTravelType>
io.superdurable.dex.TimeTravelType
All Implemented Interfaces:
Serializable, Comparable<TimeTravelType>, Constable

public enum TimeTravelType extends Enum<TimeTravelType>
Selects the historical point from which a Flow resumes in a new run.

Create TimeTravelOptions with the matching selector method for the chosen value. STEP_EXECUTION_ID also requires a TimeTravelStepMethod.

  • Enum Constant Details

    • BEGINNING

      public static final TimeTravelType BEGINNING
      Resumes at the beginning of the Flow execution.
    • HISTORY_EVENT_TIME

      public static final TimeTravelType HISTORY_EVENT_TIME
      Resumes at a history event selected by timestamp.
    • STEP_TYPE

      public static final TimeTravelType STEP_TYPE
      Resumes at an occurrence of a Step type.
    • STEP_EXECUTION_ID

      public static final TimeTravelType STEP_EXECUTION_ID
      Resumes at a specific Step execution ID.
  • Method Details

    • values

      public static TimeTravelType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TimeTravelType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null