Package io.temporal.internal.worker
Interface WorkflowTaskHandler
-
- All Known Implementing Classes:
ReplayWorkflowTaskHandler
public interface WorkflowTaskHandlerInterface of workflow task handlers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classWorkflowTaskHandler.Result
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WorkflowTaskHandler.ResulthandleWorkflowTask(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse workflowTask)Handles a single workflow taskbooleanisAnyTypeSupported()True if this handler handles at least one workflow type.
-
-
-
Method Detail
-
handleWorkflowTask
WorkflowTaskHandler.Result handleWorkflowTask(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse workflowTask) throws java.lang.Exception
Handles a single workflow task- Parameters:
workflowTask- The workflow task to handle.- Returns:
- One of the possible workflow task replies: RespondWorkflowTaskCompletedRequest, RespondQueryTaskCompletedRequest, RespondWorkflowTaskFailedRequest
- Throws:
java.lang.Exception- an original exception or error if the processing should be just abandoned without replying to the server
-
isAnyTypeSupported
boolean isAnyTypeSupported()
True if this handler handles at least one workflow type.
-
-