Record Class PrimitiveCommands.WorkflowStepResultWaitForCommand
java.lang.Object
java.lang.Record
io.axoniq.framework.workflow.runtime.api.execution.context.PrimitiveCommands.WorkflowStepResultWaitForCommand
- Record Components:
stepName- step nameeventCondition- event conditionresultPayloadReducer- result payload reducertimeout- timeout durationeventNameCustomizer- event name customizer
- All Implemented Interfaces:
WaitForPrimitive.WaitForCommand
- Enclosing class:
PrimitiveCommands
@Internal
public static record PrimitiveCommands.WorkflowStepResultWaitForCommand(String stepName, EventCondition eventCondition, PayloadReducer resultPayloadReducer, Duration timeout, EventNameCustomizer eventNameCustomizer)
extends Record
implements WaitForPrimitive.WaitForCommand
Default wait-for-event command implementation allowing asynchronous execution and returning the
.
invalid reference
WorkflowStepResult
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowStepResultWaitForCommand(String stepName, EventCondition eventCondition, PayloadReducer resultPayloadReducer, Duration timeout, EventNameCustomizer eventNameCustomizer) Creates an instance of aWorkflowStepResultWaitForCommandrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventConditionrecord component.Returns the value of theeventNameCustomizerrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theresultPayloadReducerrecord component.stepName()Returns the value of thestepNamerecord component.timeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WorkflowStepResultWaitForCommand
public WorkflowStepResultWaitForCommand(String stepName, EventCondition eventCondition, PayloadReducer resultPayloadReducer, Duration timeout, EventNameCustomizer eventNameCustomizer) Creates an instance of aWorkflowStepResultWaitForCommandrecord class.- Parameters:
stepName- the value for thestepNamerecord componenteventCondition- the value for theeventConditionrecord componentresultPayloadReducer- the value for theresultPayloadReducerrecord componenttimeout- the value for thetimeoutrecord componenteventNameCustomizer- the value for theeventNameCustomizerrecord 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). -
stepName
Returns the value of thestepNamerecord component.- Specified by:
stepNamein interfaceWaitForPrimitive.WaitForCommand- Returns:
- the value of the
stepNamerecord component
-
eventCondition
Returns the value of theeventConditionrecord component.- Specified by:
eventConditionin interfaceWaitForPrimitive.WaitForCommand- Returns:
- the value of the
eventConditionrecord component
-
resultPayloadReducer
Returns the value of theresultPayloadReducerrecord component.- Specified by:
resultPayloadReducerin interfaceWaitForPrimitive.WaitForCommand- Returns:
- the value of the
resultPayloadReducerrecord component
-
timeout
Returns the value of thetimeoutrecord component.- Specified by:
timeoutin interfaceWaitForPrimitive.WaitForCommand- Returns:
- the value of the
timeoutrecord component
-
eventNameCustomizer
Returns the value of theeventNameCustomizerrecord component.- Specified by:
eventNameCustomizerin interfaceWaitForPrimitive.WaitForCommand- Returns:
- the value of the
eventNameCustomizerrecord component
-