Package io.temporal.client
Class UpdateWithStartWorkflowOperation<R>
- java.lang.Object
-
- io.temporal.client.UpdateWithStartWorkflowOperation<R>
-
public final class UpdateWithStartWorkflowOperation<R> extends java.lang.ObjectUpdateWithStartWorkflowOperation is an update workflow request that can be executed together with a start workflow request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateWithStartWorkflowOperation.Builder<R>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateOptions<R>getOptions()RgetResult()Returns the result of the update request.java.lang.Object[]getUpdateArgs()java.util.concurrent.Future<WorkflowUpdateHandle<R>>getUpdateHandle()static <R> UpdateWithStartWorkflowOperation.Builder<R>newBuilder(Functions.Func<R> request)Returns a new builder for anUpdateWithStartWorkflowOperationfor a zero argument request.static <A1,R>
UpdateWithStartWorkflowOperation.Builder<R>newBuilder(Functions.Func1<A1,R> request, A1 arg1)Returns a new builder for anUpdateWithStartWorkflowOperationfor a one argument request.static <A1,A2,R>
UpdateWithStartWorkflowOperation.Builder<R>newBuilder(Functions.Func2<A1,A2,R> request, A1 arg1, A2 arg2)Returns a new builder for anUpdateWithStartWorkflowOperationfor a two argument request.static <A1,A2,A3,R>
UpdateWithStartWorkflowOperation.Builder<R>newBuilder(Functions.Func3<A1,A2,A3,R> request, A1 arg1, A2 arg2, A3 arg3)Returns a new builder for anUpdateWithStartWorkflowOperationfor a three argument request.static <A1,A2,A3,A4,R>
UpdateWithStartWorkflowOperation.Builder<R>newBuilder(Functions.Func4<A1,A2,A3,A4,R> request, A1 arg1, A2 arg2, A3 arg3, A4 arg4)Returns a new builder for anUpdateWithStartWorkflowOperationfor a four argument request.static <A1,A2,A3,A4,A5,R>
UpdateWithStartWorkflowOperation.Builder<R>newBuilder(Functions.Func5<A1,A2,A3,A4,A5,R> request, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)Returns a new builder for anUpdateWithStartWorkflowOperationfor a five argument request.static <A1,A2,A3,A4,A5,A6,R>
UpdateWithStartWorkflowOperation.Builder<R>newBuilder(Functions.Func6<A1,A2,A3,A4,A5,A6,R> request, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6)Returns a new builder for anUpdateWithStartWorkflowOperationfor a six argument request.static UpdateWithStartWorkflowOperation.Builder<java.lang.Void>newBuilder(Functions.Proc request)Returns a new builder for anUpdateWithStartWorkflowOperationfor a zero argument request.static <A1> UpdateWithStartWorkflowOperation.Builder<java.lang.Void>newBuilder(Functions.Proc1<A1> request, A1 arg1)Returns a new builder for anUpdateWithStartWorkflowOperationfor a one argument request.static <A1,A2>
UpdateWithStartWorkflowOperation.Builder<java.lang.Void>newBuilder(Functions.Proc2<A1,A2> request, A1 arg1, A2 arg2)Returns a new builder for anUpdateWithStartWorkflowOperationfor a two argument request.static <A1,A2,A3>
UpdateWithStartWorkflowOperation.Builder<java.lang.Void>newBuilder(Functions.Proc3<A1,A2,A3> request, A1 arg1, A2 arg2, A3 arg3)Returns a new builder for anUpdateWithStartWorkflowOperationfor a three argument request.static <A1,A2,A3,A4>
UpdateWithStartWorkflowOperation.Builder<java.lang.Void>newBuilder(Functions.Proc4<A1,A2,A3,A4> request, A1 arg1, A2 arg2, A3 arg3, A4 arg4)Returns a new builder for anUpdateWithStartWorkflowOperationfor a four argument request.static <A1,A2,A3,A4,A5>
UpdateWithStartWorkflowOperation.Builder<java.lang.Void>newBuilder(Functions.Proc5<A1,A2,A3,A4,A5> request, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)Returns a new builder for anUpdateWithStartWorkflowOperationfor a five argument request.static <A1,A2,A3,A4,A5,A6>
UpdateWithStartWorkflowOperation.Builder<java.lang.Void>newBuilder(Functions.Proc6<A1,A2,A3,A4,A5,A6> request, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6)Returns a new builder for anUpdateWithStartWorkflowOperationfor a six argument request.static <R> UpdateWithStartWorkflowOperation.Builder<R>newBuilder(java.lang.String updateName, java.lang.Class<R> resultClass, java.lang.Object[] args)Returns a new builder for anUpdateWithStartWorkflowOperation.java.lang.StringtoString()
-
-
-
Method Detail
-
newBuilder
public static <R> UpdateWithStartWorkflowOperation.Builder<R> newBuilder(Functions.Func<R> request)
Returns a new builder for anUpdateWithStartWorkflowOperationfor a zero argument request.- Parameters:
request- method reference annotated with @UpdateMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).
-
newBuilder
public static <A1,R> UpdateWithStartWorkflowOperation.Builder<R> newBuilder(Functions.Func1<A1,R> request, A1 arg1)
Returns a new builder for anUpdateWithStartWorkflowOperationfor a one argument request.- Parameters:
request- method reference annotated with @UpdateMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first request function parameter
-
newBuilder
public static <A1,A2,R> UpdateWithStartWorkflowOperation.Builder<R> newBuilder(Functions.Func2<A1,A2,R> request, A1 arg1, A2 arg2)
Returns a new builder for anUpdateWithStartWorkflowOperationfor a two argument request.- Parameters:
request- method reference annotated with @UpdateMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first request function parameterarg2- second request function parameter
-
newBuilder
public static <A1,A2,A3,R> UpdateWithStartWorkflowOperation.Builder<R> newBuilder(Functions.Func3<A1,A2,A3,R> request, A1 arg1, A2 arg2, A3 arg3)
Returns a new builder for anUpdateWithStartWorkflowOperationfor a three argument request.- Parameters:
request- method reference annotated with @UpdateMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first request function parameterarg2- second request function parameterarg3- third request function parameter
-
newBuilder
public static <A1,A2,A3,A4,R> UpdateWithStartWorkflowOperation.Builder<R> newBuilder(Functions.Func4<A1,A2,A3,A4,R> request, A1 arg1, A2 arg2, A3 arg3, A4 arg4)
Returns a new builder for anUpdateWithStartWorkflowOperationfor a four argument request.- Parameters:
request- method reference annotated with @UpdateMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first request function parameterarg2- second request function parameterarg3- third request function parameterarg4- fourth request function parameter
-
newBuilder
public static <A1,A2,A3,A4,A5,R> UpdateWithStartWorkflowOperation.Builder<R> newBuilder(Functions.Func5<A1,A2,A3,A4,A5,R> request, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)
Returns a new builder for anUpdateWithStartWorkflowOperationfor a five argument request.- Parameters:
request- method reference annotated with @UpdateMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first request function parameterarg2- second request function parameterarg3- third request function parameterarg4- fourth request function parameterarg5- fifth request function parameter
-
newBuilder
public static <A1,A2,A3,A4,A5,A6,R> UpdateWithStartWorkflowOperation.Builder<R> newBuilder(Functions.Func6<A1,A2,A3,A4,A5,A6,R> request, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6)
Returns a new builder for anUpdateWithStartWorkflowOperationfor a six argument request.- Parameters:
request- method reference annotated with @UpdateMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first request function parameterarg2- second request function parameterarg3- third request function parameterarg4- fourth request function parameterarg5- fifth request function parameterarg6- sixth request function parameter
-
newBuilder
public static UpdateWithStartWorkflowOperation.Builder<java.lang.Void> newBuilder(Functions.Proc request)
Returns a new builder for anUpdateWithStartWorkflowOperationfor a zero argument request.- Parameters:
request- method reference annotated with @UpdateMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).
-
newBuilder
public static <A1> UpdateWithStartWorkflowOperation.Builder<java.lang.Void> newBuilder(Functions.Proc1<A1> request, A1 arg1)
Returns a new builder for anUpdateWithStartWorkflowOperationfor a one argument request.- Parameters:
request- method reference annotated with @UpdateMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first request function parameter
-
newBuilder
public static <A1,A2> UpdateWithStartWorkflowOperation.Builder<java.lang.Void> newBuilder(Functions.Proc2<A1,A2> request, A1 arg1, A2 arg2)
Returns a new builder for anUpdateWithStartWorkflowOperationfor a two argument request.- Parameters:
request- method reference annotated with @UpdateMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first request function parameterarg2- second request function parameter
-
newBuilder
public static <A1,A2,A3> UpdateWithStartWorkflowOperation.Builder<java.lang.Void> newBuilder(Functions.Proc3<A1,A2,A3> request, A1 arg1, A2 arg2, A3 arg3)
Returns a new builder for anUpdateWithStartWorkflowOperationfor a three argument request.- Parameters:
request- method reference annotated with @UpdateMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first request function parameterarg2- second request function parameterarg3- third request function parameter
-
newBuilder
public static <A1,A2,A3,A4> UpdateWithStartWorkflowOperation.Builder<java.lang.Void> newBuilder(Functions.Proc4<A1,A2,A3,A4> request, A1 arg1, A2 arg2, A3 arg3, A4 arg4)
Returns a new builder for anUpdateWithStartWorkflowOperationfor a four argument request.- Parameters:
request- method reference annotated with @UpdateMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first request function parameterarg2- second request function parameterarg3- third request function parameterarg4- fourth request function parameter
-
newBuilder
public static <A1,A2,A3,A4,A5> UpdateWithStartWorkflowOperation.Builder<java.lang.Void> newBuilder(Functions.Proc5<A1,A2,A3,A4,A5> request, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)
Returns a new builder for anUpdateWithStartWorkflowOperationfor a five argument request.- Parameters:
request- method reference annotated with @UpdateMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first request function parameterarg2- second request function parameterarg3- third request function parameterarg4- fourth request function parameterarg5- fifth request function parameter
-
newBuilder
public static <A1,A2,A3,A4,A5,A6> UpdateWithStartWorkflowOperation.Builder<java.lang.Void> newBuilder(Functions.Proc6<A1,A2,A3,A4,A5,A6> request, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6)
Returns a new builder for anUpdateWithStartWorkflowOperationfor a six argument request.- Parameters:
request- method reference annotated with @UpdateMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions).arg1- first request function parameterarg2- second request function parameterarg3- third request function parameterarg4- fourth request function parameterarg5- fifth request function parameterarg6- sixth request function parameter
-
newBuilder
public static <R> UpdateWithStartWorkflowOperation.Builder<R> newBuilder(java.lang.String updateName, java.lang.Class<R> resultClass, java.lang.Object[] args)
Returns a new builder for anUpdateWithStartWorkflowOperation.- Parameters:
updateName- name of the update handlerresultClass- class of the update return valueargs- update request arguments
-
getResult
public R getResult() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Returns the result of the update request.- Throws:
java.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
getUpdateHandle
public java.util.concurrent.Future<WorkflowUpdateHandle<R>> getUpdateHandle()
-
getOptions
public UpdateOptions<R> getOptions()
-
getUpdateArgs
public java.lang.Object[] getUpdateArgs()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-