Record Class WaitForStepDefinition
java.lang.Object
java.lang.Record
io.axoniq.framework.workflow.dsl.api.WaitForStepDefinition
- Record Components:
primitiveMetadata- metadata of the primitiveeventCondition- condition for event receiptpayloadMapping- mapping of payloadstiming- timing configuration
public record WaitForStepDefinition(PrimitiveMetadata primitiveMetadata, EventCondition eventCondition, PayloadMapping payloadMapping, Timing timing)
extends Record
Specification for waiting for an event within a workflow.
- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Constructor Summary
ConstructorsConstructorDescriptionWaitForStepDefinition(PrimitiveMetadata primitiveMetadata, EventCondition eventCondition, PayloadMapping payloadMapping, Timing timing) Creates an instance of aWaitForStepDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventConditionrecord component.eventCondition(EventCondition eventCondition) Returns a copy of this definition with the provided event condition.eventNameCustomizer(EventNameCustomizer eventNameCustomizer) Returns a copy of this definition with the provided event name customizer.final inthashCode()Returns a hash code value for this object.Returns the value of thepayloadMappingrecord component.payloadMapping(PayloadMapping payloadMapping) Returns a copy of this definition with the provided payload mapping.Returns the value of theprimitiveMetadatarecord component.primitiveMetadata(PrimitiveMetadata primitiveMetadata) Returns a copy of this definition with the provided primitive metadata.resultPayloadReducer(PayloadReducer resultPayloadReducer) Returns a copy of this definition with the provided result payload reducer.Returns a copy of this definition with the provided step name.timeout(long timeoutSeconds) Returns a copy of this definition with the provided timeout in seconds.Returns a copy of this definition with the provided timeout.timing()Returns the value of thetimingrecord component.Returns a copy of this definition with the provided timing configuration.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WaitForStepDefinition
public WaitForStepDefinition(PrimitiveMetadata primitiveMetadata, EventCondition eventCondition, PayloadMapping payloadMapping, Timing timing) Creates an instance of aWaitForStepDefinitionrecord class.- Parameters:
primitiveMetadata- the value for theprimitiveMetadatarecord componenteventCondition- the value for theeventConditionrecord componentpayloadMapping- the value for thepayloadMappingrecord componenttiming- the value for thetimingrecord component
-
-
Method Details
-
primitiveMetadata
Returns a copy of this definition with the provided primitive metadata.- Parameters:
primitiveMetadata- metadata of the primitive- Returns:
- copied step definition with updated metadata
-
stepName
Returns a copy of this definition with the provided step name.- Parameters:
stepName- logical step name- Returns:
- copied step definition with updated step name
-
eventNameCustomizer
Returns a copy of this definition with the provided event name customizer.- Parameters:
eventNameCustomizer- customizer for published event names- Returns:
- copied step definition with updated event naming
-
eventCondition
Returns a copy of this definition with the provided event condition.- Parameters:
eventCondition- condition for event receipt- Returns:
- copied step definition with updated event condition
-
payloadMapping
Returns a copy of this definition with the provided payload mapping.- Parameters:
payloadMapping- mapping of payloads- Returns:
- copied step definition with updated payload mapping
-
resultPayloadReducer
Returns a copy of this definition with the provided result payload reducer.- Parameters:
resultPayloadReducer- reducer that updates the workflow payload from the event result- Returns:
- copied step definition with updated result payload reducer
-
timing
Returns a copy of this definition with the provided timing configuration.- Parameters:
timing- timing configuration- Returns:
- copied step definition with updated timing
-
timeout
Returns a copy of this definition with the provided timeout.- Parameters:
timeout- timeout duration- Returns:
- copied step definition with updated timeout
-
timeout
Returns a copy of this definition with the provided timeout in seconds.- Parameters:
timeoutSeconds- timeout in seconds- Returns:
- copied step definition with updated timeout
-
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). -
primitiveMetadata
Returns the value of theprimitiveMetadatarecord component.- Returns:
- the value of the
primitiveMetadatarecord component
-
eventCondition
Returns the value of theeventConditionrecord component.- Returns:
- the value of the
eventConditionrecord component
-
payloadMapping
Returns the value of thepayloadMappingrecord component.- Returns:
- the value of the
payloadMappingrecord component
-
timing
Returns the value of thetimingrecord component.- Returns:
- the value of the
timingrecord component
-