Interface WorkflowTaskDispatchHandle.DispatchCallback
- All Superinterfaces:
Function<WorkflowTask,Boolean>
- Enclosing class:
WorkflowTaskDispatchHandle
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface WorkflowTaskDispatchHandle.DispatchCallback
extends Function<WorkflowTask,Boolean>
A callback into a
WorkflowWorker to dispatch a workflow task-
Method Summary
Modifier and TypeMethodDescriptionapply(WorkflowTask workflowTask) Should dispatch the Workflow Task to the Workflow Worker.
-
Method Details
-
apply
Should dispatch the Workflow Task to the Workflow Worker. Shouldn't block the thread.- Specified by:
applyin interfaceFunction<WorkflowTask,Boolean> - Parameters:
workflowTask- WorkflowTask to be dispatched- Returns:
- true if the dispatch was successful and false otherwise
- Throws:
IllegalArgumentException- ifworkflowTaskdoesn't belong to the task queue of the Worker that provided theWorkflowTaskDispatchHandle
-