Class TimeTravelOptions.Builder
java.lang.Object
io.superdurable.dex.TimeTravelOptions.Builder
- Enclosing class:
TimeTravelOptions
Builds immutable
TimeTravelOptions values.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds immutable time travel options from the current values.historyEventTime(Instant value) Selects the latest eligible history event at or before a timestamp.Records a human-readable time travel reason.skipWritesReapply(boolean value) Controls whether historical writes are omitted from replay.stepExecutionId(String value) Selects a time travel point by server Step execution ID.stepMethod(TimeTravelStepMethod value) Selects the WaitFor or Execute boundary for a Step execution.Selects a time travel point by Step type.
-
Method Details
-
historyEventTime
Selects the latest eligible history event at or before a timestamp.- Parameters:
value- the history timestamp- Returns:
- this builder
-
stepType
Selects a time travel point by Step type.- Parameters:
value- the Step type- Returns:
- this builder
-
stepExecutionId
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
Records a human-readable time travel reason.- Parameters:
value- the time travel reason, ornull- Returns:
- this builder
-
skipWritesReapply
Controls whether historical writes are omitted from replay.Writes include RPCs, Channel publications, and Attribute writes after the selected point.
- Parameters:
value-trueto skip reapplying writes- Returns:
- this builder
-
build
Builds immutable time travel options from the current values.- Returns:
- the configured time travel options
-