Record Class StageDefinition
java.lang.Object
java.lang.Record
com.iantapply.orchestra.api.StageDefinition
- Record Components:
id- identifier unique within its eventduration- delay before the next stage becomes duetimeout- maximum time allowed for each condition or action attemptconditions- conditions that must all passactions- actions executed for each resolved target
public record StageDefinition(String id, Duration duration, Duration timeout, List<ConditionSpec> conditions, List<ActionSpec> actions)
extends Record
One ordered stage in an event workflow.
-
Constructor Summary
ConstructorsConstructorDescriptionStageDefinition(String id, Duration duration, Duration timeout, List<ConditionSpec> conditions, List<ActionSpec> actions) Validates timing values and snapshots conditions and actions. -
Method Summary
Modifier and TypeMethodDescriptionactions()Returns the value of theactionsrecord component.Returns the value of theconditionsrecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.timeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StageDefinition
public StageDefinition(String id, Duration duration, Duration timeout, List<ConditionSpec> conditions, List<ActionSpec> actions) Validates timing values and snapshots conditions and actions.
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
-
duration
-
timeout
-
conditions
Returns the value of theconditionsrecord component.- Returns:
- the value of the
conditionsrecord component
-
actions
-