Interface WorkflowCancellation.Request
- All Superinterfaces:
WorkflowCancellation
- Enclosing interface:
WorkflowCancellation
Provides pending workflow-cancellation requests to the workflow driver.
The cancellation coordinator owns this state. The workflow driver only consumes it after being woken so that it can publish the terminal event on its single control thread.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.axoniq.framework.workflow.runtime.execution.WorkflowCancellation
WorkflowCancellation.PendingRequest, WorkflowCancellation.Request -
Method Summary
Modifier and TypeMethodDescriptionvoidAborts an unconsumed workflow cancellation request because its workflow execution is no longer live.@Nullable WorkflowCancellation.PendingRequestReturns and marks the pending workflow cancellation request as consumed.booleanReturns whether a workflow cancellation request is waiting for the workflow driver.Methods inherited from interface io.axoniq.framework.workflow.runtime.execution.WorkflowCancellation
requestCancellationOfAllSteps, requestStepCancellation, requestWorkflowCancellation
-
Method Details
-
hasPendingWorkflowCancellation
boolean hasPendingWorkflowCancellation()Returns whether a workflow cancellation request is waiting for the workflow driver.- Returns:
truewhen a cancellation request is pending, otherwisefalse
-
consumeWorkflowCancellation
@Nullable WorkflowCancellation.PendingRequest consumeWorkflowCancellation()Returns and marks the pending workflow cancellation request as consumed.- Returns:
- the pending cancellation request, or
nullwhen no request is pending
-
abortPendingWorkflowCancellation
Aborts an unconsumed workflow cancellation request because its workflow execution is no longer live.- Parameters:
reason- reason the cancellation can no longer be performed
-