Class WaitForDelegate
java.lang.Object
io.axoniq.framework.workflow.runtime.execution.AbstractStepExecutor
io.axoniq.framework.workflow.runtime.execution.WaitForDelegate
- All Implemented Interfaces:
WaitForPrimitive
Delegate implementing
WaitForPrimitive.- Since:
- 5.4.0
- Author:
- Stefan Dragisic, Simon Zambrovski
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.axoniq.framework.workflow.runtime.api.execution.context.WaitForPrimitive
WaitForPrimitive.WaitForCommand -
Field Summary
Fields inherited from class io.axoniq.framework.workflow.runtime.execution.AbstractStepExecutor
clock, parentEventNameCustomizer, reachedSteps, runningSteps, timeoutScheduler, workflowExecution, workflowExecutionOperations -
Constructor Summary
ConstructorsConstructorDescriptionWaitForDelegate(WorkflowExecutionOperations workflowExecutionOperations, WorkflowExecution workflowExecution, RunningSteps runningSteps, io.axoniq.framework.workflow.runtime.execution.EventWaitConditions eventWaitConditions, ReachedSteps reachedSteps, EventNameCustomizer parentEventNameCustomizer, Clock clock, WorkflowScheduler timeoutScheduler) Constructs the delegate. -
Method Summary
Modifier and TypeMethodDescriptionWait for event.Methods inherited from class io.axoniq.framework.workflow.runtime.execution.AbstractStepExecutor
acceptAllPendingTasksForStep, appendEvent, cancelled, cancelled, cancelledWaitForEvent, completed, completed, completedWaitForEvent, eventMessagePayload, failed, getContext, isCancellation, registerParkedStep, registerParkedStep, retrying, retryStarted, sanitize, started, startedWaitForEvent, stateBased, timedOut, timedOut, timedOutWaitForEvent, timedOutWaitForEvent, unwrapCancellation, unwrapCompletionException
-
Constructor Details
-
WaitForDelegate
@Internal public WaitForDelegate(WorkflowExecutionOperations workflowExecutionOperations, WorkflowExecution workflowExecution, RunningSteps runningSteps, io.axoniq.framework.workflow.runtime.execution.EventWaitConditions eventWaitConditions, ReachedSteps reachedSteps, EventNameCustomizer parentEventNameCustomizer, Clock clock, WorkflowScheduler timeoutScheduler) Constructs the delegate.- Parameters:
workflowExecutionOperations- runtime primitive-operation surfaceworkflowExecution- workflow state.runningSteps- running step registryeventWaitConditions- event wait condition registryreachedSteps- reached steps trackerparentEventNameCustomizer- parent event name customizer.clock- clock for time calculations.timeoutScheduler- scheduler for workflow step timeoutsunitOfWorkFactory- unit of work factory for creation of new process contexts.eventSink- event sink to publish events.executor- executor to offload threads from main thread.
-
-
Method Details
-
waitForEvent
Description copied from interface:WaitForPrimitiveWait for event.- Specified by:
waitForEventin interfaceWaitForPrimitive- Parameters:
command- command object- Returns:
- result of command execution
-