Class WorkflowClientOperationHandlers


  • public final class WorkflowClientOperationHandlers
    extends java.lang.Object
    WorkflowClientOperationHandlers can be used to create Temporal specific OperationHandlers
    • Method Detail

      • fromWorkflowMethod

        public static <T,​R> io.nexusrpc.handler.OperationHandler<T,​R> fromWorkflowMethod​(WorkflowMethodFactory<T,​R> startMethod)
        Maps a workflow method to an OperationHandler.
        Parameters:
        startMethod - returns the workflow method reference to call
        Returns:
        Operation handler to be used as an OperationImpl
      • fromWorkflowHandle

        public static <T,​R> io.nexusrpc.handler.OperationHandler<T,​R> fromWorkflowHandle​(WorkflowHandleFactory<T,​R> handleFactory)
        Maps a workflow handle to an OperationHandler.
        Parameters:
        handleFactory - returns the workflow handle that will be mapped to the call
        Returns:
        Operation handler to be used as an OperationImpl