Class TimeTravelOptions.Builder

java.lang.Object
io.superdurable.dex.TimeTravelOptions.Builder
Enclosing class:
TimeTravelOptions

public static final class TimeTravelOptions.Builder extends Object
Builds immutable TimeTravelOptions values.
  • Method Details

    • historyEventTime

      public TimeTravelOptions.Builder historyEventTime(Instant value)
      Selects the latest eligible history event at or before a timestamp.
      Parameters:
      value - the history timestamp
      Returns:
      this builder
    • stepType

      public TimeTravelOptions.Builder stepType(String value)
      Selects a time travel point by Step type.
      Parameters:
      value - the Step type
      Returns:
      this builder
    • stepExecutionId

      public TimeTravelOptions.Builder stepExecutionId(String value)
      Selects a time travel point by server Step execution ID.
      Parameters:
      value - the Step execution ID
      Returns:
      this builder
    • stepMethod

      Selects the WaitFor or Execute boundary for a Step execution.
      Parameters:
      value - the Step method used as the time travel boundary
      Returns:
      this builder
    • reason

      public TimeTravelOptions.Builder reason(String value)
      Records a human-readable time travel reason.
      Parameters:
      value - the time travel reason, or null
      Returns:
      this builder
    • skipWritesReapply

      public TimeTravelOptions.Builder skipWritesReapply(boolean value)
      Controls whether historical writes are omitted from replay.

      Writes include RPCs, Channel publications, and Attribute writes after the selected point.

      Parameters:
      value - true to skip reapplying writes
      Returns:
      this builder
    • build

      public TimeTravelOptions build()
      Builds immutable time travel options from the current values.
      Returns:
      the configured time travel options