Class WorkflowTaskDispatchHandle

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class WorkflowTaskDispatchHandle
    extends java.lang.Object
    implements java.io.Closeable
    • Method Detail

      • dispatch

        public boolean dispatch​(@Nonnull
                                io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse workflowTask)
        Parameters:
        workflowTask - to be fed directly into the workflow worker
        Returns:
        true is the workflow task was successfully dispatched
        Throws:
        java.lang.IllegalArgumentException - if the workflow task doesn't belong to the task queue of the worker provided this WorkflowTaskDispatchHandle
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable