Class TimeTravelOptions

java.lang.Object
io.superdurable.dex.TimeTravelOptions

public final class TimeTravelOptions extends Object
Selects a historical point and replay behavior for Client.timeTravel(String, TimeTravelOptions).

Create the builder with one TimeTravelType, then set the selector that corresponds to that type. Time travel creates a new run of the Flow. Writes after the selected point are reapplied by default unless explicitly skipped.

TimeTravelOptions options = TimeTravelOptions.newBuilder(TimeTravelType.STEP_TYPE)
        .stepType("ChargeOrder")
        .reason("retry after operator review")
        .build();
String newRunId = client.timeTravel("order-123", options);
  • Method Details

    • newBuilder

      public static TimeTravelOptions.Builder newBuilder(TimeTravelType type)
      Creates a builder for a time travel strategy.
      Parameters:
      type - the historical-point strategy
      Returns:
      a new mutable builder