Package io.temporal.internal.worker
Interface WorkflowTaskHandler
-
- All Known Implementing Classes:
ReplayWorkflowTaskHandler
public interface WorkflowTaskHandler
Interface of workflow task handlers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
WorkflowTaskHandler.Result
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WorkflowTaskHandler.Result
handleWorkflowTask(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse workflowTask)
Handles a single workflow taskboolean
isAnyTypeSupported()
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.
-
-