Package io.temporal.nexus
Class WorkflowHandle<R>
- java.lang.Object
-
- io.temporal.nexus.WorkflowHandle<R>
-
public final class WorkflowHandle<R> extends java.lang.ObjectWorkflowHandle is a readonly representation of a workflow run backing a Nexus operation.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <R> WorkflowHandle<R>fromWorkflowMethod(Functions.Func<R> workflow)Create a handle to a zero argument workflowstatic <A1,R>
WorkflowHandle<R>fromWorkflowMethod(Functions.Func1<A1,R> workflow, A1 arg1)Create a handle to a one argument workflow.static <A1,A2,R>
WorkflowHandle<R>fromWorkflowMethod(Functions.Func2<A1,A2,R> workflow, A1 arg1, A2 arg2)Create a handle to a two argument workflow.static <A1,A2,A3,R>
WorkflowHandle<R>fromWorkflowMethod(Functions.Func3<A1,A2,A3,R> workflow, A1 arg1, A2 arg2, A3 arg3)Create a handle to a three argument workflow.static <A1,A2,A3,A4,R>
WorkflowHandle<R>fromWorkflowMethod(Functions.Func4<A1,A2,A3,A4,R> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4)Create a handle to a four argument workflow.static <A1,A2,A3,A4,A5,R>
WorkflowHandle<R>fromWorkflowMethod(Functions.Func5<A1,A2,A3,A4,A5,R> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)Create a handle to a five argument workflow.static <A1,A2,A3,A4,A5,A6,R>
WorkflowHandle<R>fromWorkflowMethod(Functions.Func6<A1,A2,A3,A4,A5,A6,R> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6)Create a handle to a six argument workflow.static WorkflowHandle<java.lang.Void>fromWorkflowMethod(Functions.Proc workflow)Create a handle to a zero argument workflow with void return typestatic <A1> WorkflowHandle<java.lang.Void>fromWorkflowMethod(Functions.Proc1<A1> workflow, A1 arg1)Create a handle to a one argument workflow with void return typestatic <A1,A2>
WorkflowHandle<java.lang.Void>fromWorkflowMethod(Functions.Proc2<A1,A2> workflow, A1 arg1, A2 arg2)Create a handle to a two argument workflow with void return typestatic <A1,A2,A3>
WorkflowHandle<java.lang.Void>fromWorkflowMethod(Functions.Proc3<A1,A2,A3> workflow, A1 arg1, A2 arg2, A3 arg3)Create a handle to a three argument workflow with void return typestatic <A1,A2,A3,A4>
WorkflowHandle<java.lang.Void>fromWorkflowMethod(Functions.Proc4<A1,A2,A3,A4> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4)Create a handle to a four argument workflow with void return typestatic <A1,A2,A3,A4,A5>
WorkflowHandle<java.lang.Void>fromWorkflowMethod(Functions.Proc5<A1,A2,A3,A4,A5> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)Create a handle to a five argument workflow with void return typestatic <A1,A2,A3,A4,A5,A6>
WorkflowHandle<java.lang.Void>fromWorkflowMethod(Functions.Proc6<A1,A2,A3,A4,A5,A6> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6)Create a handle to a five argument workflow with void return typestatic <R> WorkflowHandle<R>fromWorkflowStub(WorkflowStub stub, java.lang.Class<R> resultClass, java.lang.Object... args)Create a WorkflowHandle from an untyped workflow stub.
-
-
-
Method Detail
-
fromWorkflowMethod
public static WorkflowHandle<java.lang.Void> fromWorkflowMethod(Functions.Proc workflow)
Create a handle to a zero argument workflow with void return type- Parameters:
workflow- The only supported value is method reference to a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).- Returns:
- WorkflowHandle
-
fromWorkflowMethod
public static <A1> WorkflowHandle<java.lang.Void> fromWorkflowMethod(Functions.Proc1<A1> workflow, A1 arg1)
Create a handle to a one argument workflow with void return type- Parameters:
workflow- The only supported value is method reference to a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first workflow argument- Returns:
- WorkflowHandle
-
fromWorkflowMethod
public static <A1,A2> WorkflowHandle<java.lang.Void> fromWorkflowMethod(Functions.Proc2<A1,A2> workflow, A1 arg1, A2 arg2)
Create a handle to a two argument workflow with void return type- Parameters:
workflow- The only supported value is method reference to a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first workflow argumentarg2- second workflow argument- Returns:
- WorkflowHandle
-
fromWorkflowMethod
public static <A1,A2,A3> WorkflowHandle<java.lang.Void> fromWorkflowMethod(Functions.Proc3<A1,A2,A3> workflow, A1 arg1, A2 arg2, A3 arg3)
Create a handle to a three argument workflow with void return type- Parameters:
workflow- The only supported value is method reference to a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first workflow argumentarg2- second workflow argumentarg3- third workflow argument- Returns:
- WorkflowHandle
-
fromWorkflowMethod
public static <A1,A2,A3,A4> WorkflowHandle<java.lang.Void> fromWorkflowMethod(Functions.Proc4<A1,A2,A3,A4> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4)
Create a handle to a four argument workflow with void return type- Parameters:
workflow- The only supported value is method reference to a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first workflow argumentarg2- second workflow argumentarg3- third workflow argumentarg4- third workflow argument- Returns:
- WorkflowHandle
-
fromWorkflowMethod
public static <A1,A2,A3,A4,A5> WorkflowHandle<java.lang.Void> fromWorkflowMethod(Functions.Proc5<A1,A2,A3,A4,A5> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)
Create a handle to a five argument workflow with void return type- Parameters:
workflow- The only supported value is method reference to a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first workflow argumentarg2- second workflow argumentarg3- third workflow argumentarg4- fourth workflow argumentarg5- fifth workflow argument- Returns:
- WorkflowHandle
-
fromWorkflowMethod
public static <A1,A2,A3,A4,A5,A6> WorkflowHandle<java.lang.Void> fromWorkflowMethod(Functions.Proc6<A1,A2,A3,A4,A5,A6> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6)
Create a handle to a five argument workflow with void return type- Parameters:
workflow- The only supported value is method reference to a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first workflow argumentarg2- second workflow argumentarg3- third workflow argumentarg4- fourth workflow argumentarg5- fifth workflow argumentarg6- fifth workflow argument- Returns:
- WorkflowHandle
-
fromWorkflowMethod
public static <R> WorkflowHandle<R> fromWorkflowMethod(Functions.Func<R> workflow)
Create a handle to a zero argument workflow- Parameters:
workflow- The only supported value is method reference to a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).- Returns:
- WorkflowHandle
-
fromWorkflowMethod
public static <A1,R> WorkflowHandle<R> fromWorkflowMethod(Functions.Func1<A1,R> workflow, A1 arg1)
Create a handle to a one argument workflow.- Parameters:
workflow- The only supported value is method reference to a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first workflow argument- Returns:
- WorkflowHandle
-
fromWorkflowMethod
public static <A1,A2,R> WorkflowHandle<R> fromWorkflowMethod(Functions.Func2<A1,A2,R> workflow, A1 arg1, A2 arg2)
Create a handle to a two argument workflow.- Parameters:
workflow- The only supported value is method reference to a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first workflow function parameterarg2- second workflow function parameter- Returns:
- WorkflowHandle
-
fromWorkflowMethod
public static <A1,A2,A3,R> WorkflowHandle<R> fromWorkflowMethod(Functions.Func3<A1,A2,A3,R> workflow, A1 arg1, A2 arg2, A3 arg3)
Create a handle to a three argument workflow.- Parameters:
workflow- The only supported value is method reference to a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first workflow function parameterarg2- second workflow function parameterarg3- third workflow function parameter- Returns:
- WorkflowHandle
-
fromWorkflowMethod
public static <A1,A2,A3,A4,R> WorkflowHandle<R> fromWorkflowMethod(Functions.Func4<A1,A2,A3,A4,R> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4)
Create a handle to a four argument workflow.- Parameters:
workflow- The only supported value is method reference to a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first workflow function parameterarg2- second workflow function parameterarg3- third workflow function parameterarg4- fourth workflow function parameter- Returns:
- WorkflowHandle
-
fromWorkflowMethod
public static <A1,A2,A3,A4,A5,R> WorkflowHandle<R> fromWorkflowMethod(Functions.Func5<A1,A2,A3,A4,A5,R> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)
Create a handle to a five argument workflow.- Parameters:
workflow- The only supported value is method reference to a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first workflow function parameterarg2- second workflow function parameterarg3- third workflow function parameterarg4- fourth workflow function parameterarg5- fifth workflow function parameter- Returns:
- WorkflowHandle
-
fromWorkflowMethod
public static <A1,A2,A3,A4,A5,A6,R> WorkflowHandle<R> fromWorkflowMethod(Functions.Func6<A1,A2,A3,A4,A5,A6,R> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6)
Create a handle to a six argument workflow.- Parameters:
workflow- The only supported value is method reference to a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first workflow function parameterarg2- second workflow function parameterarg3- third workflow function parameterarg4- fourth workflow function parameterarg5- fifth workflow function parameterarg6- sixth workflow function parameter- Returns:
- WorkflowHandle
-
fromWorkflowStub
public static <R> WorkflowHandle<R> fromWorkflowStub(WorkflowStub stub, java.lang.Class<R> resultClass, java.lang.Object... args)
Create a WorkflowHandle from an untyped workflow stub.- Parameters:
stub- The workflow stub to useresultClass- class of the workflow return valueargs- arguments to start the workflow- Returns:
- WorkflowHandle
-
-