Record Class FeatureExecutionState
java.lang.Object
java.lang.Record
app.ductape.sdk.features.executor.state.FeatureExecutionState
public record FeatureExecutionState(String featureId, FeatureStatus status, long startedAt, long completedAt, Map<String,FeatureStepState> steps, List<FeatureSignal> signals, List<FeatureCheckpoint> checkpoints, List<Map<String,Object>> history, FeatureRollbackInfo rollbackInfo)
extends Record
Sprint 4 — full in-process feature execution state, TS-shaped for fixtures.
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureExecutionState(String featureId, FeatureStatus status, long startedAt, long completedAt, Map<String, FeatureStepState> steps, List<FeatureSignal> signals, List<FeatureCheckpoint> checkpoints, List<Map<String, Object>> history, FeatureRollbackInfo rollbackInfo) Creates an instance of aFeatureExecutionStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecheckpointsrecord component.longReturns the value of thecompletedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefeatureIdrecord component.final inthashCode()Returns a hash code value for this object.history()Returns the value of thehistoryrecord component.Returns the value of therollbackInforecord component.signals()Returns the value of thesignalsrecord component.longReturns the value of thestartedAtrecord component.status()Returns the value of thestatusrecord component.steps()Returns the value of thestepsrecord component.toMap()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FeatureExecutionState
public FeatureExecutionState(String featureId, FeatureStatus status, long startedAt, long completedAt, Map<String, FeatureStepState> steps, List<FeatureSignal> signals, List<FeatureCheckpoint> checkpoints, List<Map<String, Object>> history, FeatureRollbackInfo rollbackInfo) Creates an instance of aFeatureExecutionStaterecord class.- Parameters:
featureId- the value for thefeatureIdrecord componentstatus- the value for thestatusrecord componentstartedAt- the value for thestartedAtrecord componentcompletedAt- the value for thecompletedAtrecord componentsteps- the value for thestepsrecord componentsignals- the value for thesignalsrecord componentcheckpoints- the value for thecheckpointsrecord componenthistory- the value for thehistoryrecord componentrollbackInfo- the value for therollbackInforecord component
-
-
Method Details
-
toMap
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
featureId
Returns the value of thefeatureIdrecord component.- Returns:
- the value of the
featureIdrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
startedAt
public long startedAt()Returns the value of thestartedAtrecord component.- Returns:
- the value of the
startedAtrecord component
-
completedAt
public long completedAt()Returns the value of thecompletedAtrecord component.- Returns:
- the value of the
completedAtrecord component
-
steps
Returns the value of thestepsrecord component.- Returns:
- the value of the
stepsrecord component
-
signals
Returns the value of thesignalsrecord component.- Returns:
- the value of the
signalsrecord component
-
checkpoints
Returns the value of thecheckpointsrecord component.- Returns:
- the value of the
checkpointsrecord component
-
history
Returns the value of thehistoryrecord component.- Returns:
- the value of the
historyrecord component
-
rollbackInfo
Returns the value of therollbackInforecord component.- Returns:
- the value of the
rollbackInforecord component
-