Class TimeTravelOptions
java.lang.Object
io.superdurable.dex.TimeTravelOptions
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);
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeTravelOptions.BuildernewBuilder(TimeTravelType type) Creates a builder for a time travel strategy.
-
Method Details
-
newBuilder
Creates a builder for a time travel strategy.- Parameters:
type- the historical-point strategy- Returns:
- a new mutable builder
-