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 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 a FeatureExecutionState record class.
      Parameters:
      featureId - the value for the featureId record component
      status - the value for the status record component
      startedAt - the value for the startedAt record component
      completedAt - the value for the completedAt record component
      steps - the value for the steps record component
      signals - the value for the signals record component
      checkpoints - the value for the checkpoints record component
      history - the value for the history record component
      rollbackInfo - the value for the rollbackInfo record component
  • Method Details

    • toMap

      public Map<String,Object> toMap()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • featureId

      public String featureId()
      Returns the value of the featureId record component.
      Returns:
      the value of the featureId record component
    • status

      public FeatureStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • startedAt

      public long startedAt()
      Returns the value of the startedAt record component.
      Returns:
      the value of the startedAt record component
    • completedAt

      public long completedAt()
      Returns the value of the completedAt record component.
      Returns:
      the value of the completedAt record component
    • steps

      public Map<String,FeatureStepState> steps()
      Returns the value of the steps record component.
      Returns:
      the value of the steps record component
    • signals

      public List<FeatureSignal> signals()
      Returns the value of the signals record component.
      Returns:
      the value of the signals record component
    • checkpoints

      public List<FeatureCheckpoint> checkpoints()
      Returns the value of the checkpoints record component.
      Returns:
      the value of the checkpoints record component
    • history

      public List<Map<String,Object>> history()
      Returns the value of the history record component.
      Returns:
      the value of the history record component
    • rollbackInfo

      public FeatureRollbackInfo rollbackInfo()
      Returns the value of the rollbackInfo record component.
      Returns:
      the value of the rollbackInfo record component