Record Class StepWaitInfo
java.lang.Object
java.lang.Record
io.axoniq.framework.workflow.dsl.api.StepWaitInfo
- Record Components:
startTime- the instant the wait startedeventName- the qualified name of the awaited eventassociations- the associations the awaited event has to matchtimeoutTime- the instant the wait times out
@Internal
public record StepWaitInfo(Instant startTime, String eventName, Set<String> associations, Instant timeoutTime)
extends Record
Payload for the STARTED event of a wait-for-event step. Contains wait state for event sourcing and crash recovery.
- Since:
- 5.4.2
- Author:
- Stefan Dragisic
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassociationsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventNamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thestartTimerecord component.Returns the value of thetimeoutTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StepWaitInfo
public StepWaitInfo(Instant startTime, String eventName, Set<String> associations, Instant timeoutTime) Creates an instance of aStepWaitInforecord class.- Parameters:
startTime- the value for thestartTimerecord componenteventName- the value for theeventNamerecord componentassociations- the value for theassociationsrecord componenttimeoutTime- the value for thetimeoutTimerecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
startTime
Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
eventName
Returns the value of theeventNamerecord component.- Returns:
- the value of the
eventNamerecord component
-
associations
Returns the value of theassociationsrecord component.- Returns:
- the value of the
associationsrecord component
-
timeoutTime
Returns the value of thetimeoutTimerecord component.- Returns:
- the value of the
timeoutTimerecord component
-