public final class WorkflowClientInternal extends java.lang.Object implements WorkflowClient
QUERY_TYPE_REPLAY_ONLY, QUERY_TYPE_STACK_TRACE
Modifier and Type | Method and Description |
---|---|
static <R> java.util.concurrent.CompletableFuture<R> |
execute(Functions.Func<R> workflow)
Executes zero argument workflow.
|
static <A1,R> java.util.concurrent.CompletableFuture<R> |
execute(Functions.Func1<A1,R> workflow,
A1 arg1)
Executes one argument workflow asynchronously.
|
static <A1,A2,R> java.util.concurrent.CompletableFuture<R> |
execute(Functions.Func2<A1,A2,R> workflow,
A1 arg1,
A2 arg2)
Executes two argument workflow asynchronously.
|
static <A1,A2,A3,R> |
execute(Functions.Func3<A1,A2,A3,R> workflow,
A1 arg1,
A2 arg2,
A3 arg3)
Executes three argument workflow asynchronously.
|
static <A1,A2,A3,A4,R> |
execute(Functions.Func4<A1,A2,A3,A4,R> workflow,
A1 arg1,
A2 arg2,
A3 arg3,
A4 arg4)
Executes four argument workflow asynchronously.
|
static <A1,A2,A3,A4,A5,R> |
execute(Functions.Func5<A1,A2,A3,A4,A5,R> workflow,
A1 arg1,
A2 arg2,
A3 arg3,
A4 arg4,
A5 arg5)
Executes five argument workflow asynchronously.
|
static <A1,A2,A3,A4,A5,A6,R> |
execute(Functions.Func6<A1,A2,A3,A4,A5,A6,R> workflow,
A1 arg1,
A2 arg2,
A3 arg3,
A4 arg4,
A5 arg5,
A6 arg6)
Executes six argument workflow asynchronously.
|
static java.util.concurrent.CompletableFuture<java.lang.Void> |
execute(Functions.Proc workflow)
Executes zero argument workflow with void return type
|
static <A1> java.util.concurrent.CompletableFuture<java.lang.Void> |
execute(Functions.Proc1<A1> workflow,
A1 arg1)
Executes one argument workflow with void return type
|
static <A1,A2> java.util.concurrent.CompletableFuture<java.lang.Void> |
execute(Functions.Proc2<A1,A2> workflow,
A1 arg1,
A2 arg2)
Executes two argument workflow with void return type
|
static <A1,A2,A3> java.util.concurrent.CompletableFuture<java.lang.Void> |
execute(Functions.Proc3<A1,A2,A3> workflow,
A1 arg1,
A2 arg2,
A3 arg3)
Executes three argument workflow with void return type
|
static <A1,A2,A3,A4> |
execute(Functions.Proc4<A1,A2,A3,A4> workflow,
A1 arg1,
A2 arg2,
A3 arg3,
A4 arg4)
Executes four argument workflow with void return type
|
static <A1,A2,A3,A4,A5> |
execute(Functions.Proc5<A1,A2,A3,A4,A5> workflow,
A1 arg1,
A2 arg2,
A3 arg3,
A4 arg4,
A5 arg5)
Executes five argument workflow with void return type
|
static <A1,A2,A3,A4,A5,A6> |
execute(Functions.Proc6<A1,A2,A3,A4,A5,A6> workflow,
A1 arg1,
A2 arg2,
A3 arg3,
A4 arg4,
A5 arg5,
A6 arg6)
Executes six argument workflow with void return type
|
WorkflowClientOptions |
getOptions() |
IWorkflowService |
getService() |
ActivityCompletionClient |
newActivityCompletionClient()
Creates new
ActivityCompletionClient that can be used to complete activities
asynchronously. |
static WorkflowClient |
newInstance(IWorkflowService service,
WorkflowClientOptions options)
Creates client that connects to an instance of the Cadence Service.
|
BatchRequest |
newSignalWithStartRequest()
Creates BatchRequest that can be used to signal an existing workflow or start a new one if not
running.
|
WorkflowStub |
newUntypedWorkflowStub(java.lang.String workflowId,
java.util.Optional<java.lang.String> runId,
java.util.Optional<java.lang.String> workflowType)
Creates workflow untyped client stub for a known execution.
|
WorkflowStub |
newUntypedWorkflowStub(java.lang.String workflowType,
WorkflowOptions options)
Creates workflow untyped client stub that can be used to start a single workflow execution.
|
WorkflowStub |
newUntypedWorkflowStub(WorkflowExecution execution,
java.util.Optional<java.lang.String> workflowType)
Creates workflow untyped client stub for a known execution.
|
<T> T |
newWorkflowStub(java.lang.Class<T> workflowInterface)
Creates workflow client stub that can be used to start a single workflow execution.
|
<T> T |
newWorkflowStub(java.lang.Class<T> workflowInterface,
java.lang.String workflowId)
Creates workflow client stub for a known execution.
|
<T> T |
newWorkflowStub(java.lang.Class<T> workflowInterface,
java.lang.String workflowId,
java.util.Optional<java.lang.String> runId)
Creates workflow client stub for a known execution.
|
<T> T |
newWorkflowStub(java.lang.Class<T> workflowInterface,
WorkflowOptions options)
Creates workflow client stub that can be used to start a single workflow execution.
|
WorkflowExecution |
signalWithStart(BatchRequest signalWithStartBatch)
Invoke SignalWithStart operation.
|
static <R> WorkflowExecution |
start(Functions.Func<R> workflow)
Executes zero argument workflow.
|
static <A1,R> WorkflowExecution |
start(Functions.Func1<A1,R> workflow,
A1 arg1)
Executes one argument workflow asynchronously.
|
static <A1,A2,R> WorkflowExecution |
start(Functions.Func2<A1,A2,R> workflow,
A1 arg1,
A2 arg2)
Executes two argument workflow asynchronously.
|
static <A1,A2,A3,R> |
start(Functions.Func3<A1,A2,A3,R> workflow,
A1 arg1,
A2 arg2,
A3 arg3)
Executes three argument workflow asynchronously.
|
static <A1,A2,A3,A4,R> |
start(Functions.Func4<A1,A2,A3,A4,R> workflow,
A1 arg1,
A2 arg2,
A3 arg3,
A4 arg4)
Executes four argument workflow asynchronously.
|
static <A1,A2,A3,A4,A5,R> |
start(Functions.Func5<A1,A2,A3,A4,A5,R> workflow,
A1 arg1,
A2 arg2,
A3 arg3,
A4 arg4,
A5 arg5)
Executes five argument workflow asynchronously.
|
static <A1,A2,A3,A4,A5,A6,R> |
start(Functions.Func6<A1,A2,A3,A4,A5,A6,R> workflow,
A1 arg1,
A2 arg2,
A3 arg3,
A4 arg4,
A5 arg5,
A6 arg6)
Executes six argument workflow asynchronously.
|
static WorkflowExecution |
start(Functions.Proc workflow)
Executes zero argument workflow with void return type
|
static <A1> WorkflowExecution |
start(Functions.Proc1<A1> workflow,
A1 arg1)
Executes one argument workflow with void return type
|
static <A1,A2> WorkflowExecution |
start(Functions.Proc2<A1,A2> workflow,
A1 arg1,
A2 arg2)
Executes two argument workflow with void return type
|
static <A1,A2,A3> WorkflowExecution |
start(Functions.Proc3<A1,A2,A3> workflow,
A1 arg1,
A2 arg2,
A3 arg3)
Executes three argument workflow with void return type
|
static <A1,A2,A3,A4> |
start(Functions.Proc4<A1,A2,A3,A4> workflow,
A1 arg1,
A2 arg2,
A3 arg3,
A4 arg4)
Executes four argument workflow with void return type
|
static <A1,A2,A3,A4,A5> |
start(Functions.Proc5<A1,A2,A3,A4,A5> workflow,
A1 arg1,
A2 arg2,
A3 arg3,
A4 arg4,
A5 arg5)
Executes five argument workflow with void return type
|
static <A1,A2,A3,A4,A5,A6> |
start(Functions.Proc6<A1,A2,A3,A4,A5,A6> workflow,
A1 arg1,
A2 arg2,
A3 arg3,
A4 arg4,
A5 arg5,
A6 arg6)
Executes six argument workflow with void return type
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newInstance
public static WorkflowClient newInstance(IWorkflowService service, WorkflowClientOptions options)
newInstance
in interface WorkflowClient
service
- client to the Cadence Service endpoint.options
- Options (like DataConverter
override) for
configuring client.public WorkflowClientOptions getOptions()
getOptions
in interface WorkflowClient
public IWorkflowService getService()
getService
in interface WorkflowClient
public <T> T newWorkflowStub(java.lang.Class<T> workflowInterface)
WorkflowClient
newWorkflowStub
in interface WorkflowClient
workflowInterface
- interface that given workflow implementspublic <T> T newWorkflowStub(java.lang.Class<T> workflowInterface, WorkflowOptions options)
WorkflowClient
newWorkflowStub
in interface WorkflowClient
workflowInterface
- interface that given workflow implementsoptions
- options used to start a workflow through returned stubpublic <T> T newWorkflowStub(java.lang.Class<T> workflowInterface, java.lang.String workflowId)
WorkflowClient
newWorkflowStub
in interface WorkflowClient
workflowInterface
- interface that given workflow implements.workflowId
- Workflow id.public <T> T newWorkflowStub(java.lang.Class<T> workflowInterface, java.lang.String workflowId, java.util.Optional<java.lang.String> runId)
WorkflowClient
newWorkflowStub
in interface WorkflowClient
workflowInterface
- interface that given workflow implements.workflowId
- Workflow id.runId
- Run id of the workflow execution.public WorkflowStub newUntypedWorkflowStub(java.lang.String workflowType, WorkflowOptions options)
WorkflowClient
newUntypedWorkflowStub
in interface WorkflowClient
workflowType
- name of the workflow typeoptions
- options used to start a workflow through returned stubpublic WorkflowStub newUntypedWorkflowStub(java.lang.String workflowId, java.util.Optional<java.lang.String> runId, java.util.Optional<java.lang.String> workflowType)
WorkflowClient
newUntypedWorkflowStub
in interface WorkflowClient
workflowId
- workflow id and optional run id for executionrunId
- runId of the workflow execution. If not provided the last workflow with the given
workflowId is assumed.workflowType
- type of the workflow. Optional as it is used for error reporting only.public WorkflowStub newUntypedWorkflowStub(WorkflowExecution execution, java.util.Optional<java.lang.String> workflowType)
WorkflowClient
newUntypedWorkflowStub
in interface WorkflowClient
execution
- workflow id and optional run id for executionworkflowType
- type of the workflow. Optional as it is used for error reporting only.public ActivityCompletionClient newActivityCompletionClient()
WorkflowClient
ActivityCompletionClient
that can be used to complete activities
asynchronously. Only relevant for activity implementations that called Activity.doNotCompleteOnReturn()
.
TODO: Activity completion options with retries and timeouts. <
newActivityCompletionClient
in interface WorkflowClient
public BatchRequest newSignalWithStartRequest()
WorkflowClient
newSignalWithStartRequest
in interface WorkflowClient
WorkflowClient.signalWithStart(BatchRequest)
public WorkflowExecution signalWithStart(BatchRequest signalWithStartBatch)
WorkflowClient
signalWithStart
in interface WorkflowClient
signalWithStartBatch
- Must be created with WorkflowClient.newSignalWithStartRequest()
public static WorkflowExecution start(Functions.Proc workflow)
WorkflowClient
start
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.public static <A1> WorkflowExecution start(Functions.Proc1<A1> workflow, A1 arg1)
WorkflowClient
start
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterpublic static <A1,A2> WorkflowExecution start(Functions.Proc2<A1,A2> workflow, A1 arg1, A2 arg2)
WorkflowClient
start
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterarg2
- second workflow function parameterpublic static <A1,A2,A3> WorkflowExecution start(Functions.Proc3<A1,A2,A3> workflow, A1 arg1, A2 arg2, A3 arg3)
WorkflowClient
start
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterarg2
- second workflow function parameterarg3
- third workflow function parameterpublic static <A1,A2,A3,A4> WorkflowExecution start(Functions.Proc4<A1,A2,A3,A4> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4)
WorkflowClient
start
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterarg2
- second workflow function parameterarg3
- third workflow function parameterarg4
- fourth workflow function parameterpublic static <A1,A2,A3,A4,A5> WorkflowExecution start(Functions.Proc5<A1,A2,A3,A4,A5> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)
WorkflowClient
start
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterarg2
- second workflow function parameterarg3
- third workflow function parameterarg4
- fourth workflow function parameterarg5
- fifth workflow function parameterpublic static <A1,A2,A3,A4,A5,A6> WorkflowExecution start(Functions.Proc6<A1,A2,A3,A4,A5,A6> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6)
WorkflowClient
start
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterarg2
- second workflow function parameterarg3
- third workflow function parameterarg4
- fourth workflow function parameterarg5
- sixth workflow function parameterarg6
- sixth workflow function parameterpublic static <R> WorkflowExecution start(Functions.Func<R> workflow)
WorkflowClient
start
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.public static <A1,R> WorkflowExecution start(Functions.Func1<A1,R> workflow, A1 arg1)
WorkflowClient
start
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow argumentpublic static <A1,A2,R> WorkflowExecution start(Functions.Func2<A1,A2,R> workflow, A1 arg1, A2 arg2)
WorkflowClient
start
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterarg2
- second workflow function parameterpublic static <A1,A2,A3,R> WorkflowExecution start(Functions.Func3<A1,A2,A3,R> workflow, A1 arg1, A2 arg2, A3 arg3)
WorkflowClient
start
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterarg2
- second workflow function parameterarg3
- third workflow function parameterpublic static <A1,A2,A3,A4,R> WorkflowExecution start(Functions.Func4<A1,A2,A3,A4,R> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4)
WorkflowClient
start
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterarg2
- second workflow function parameterarg3
- third workflow function parameterarg4
- fourth workflow function parameterpublic static <A1,A2,A3,A4,A5,R> WorkflowExecution start(Functions.Func5<A1,A2,A3,A4,A5,R> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)
WorkflowClient
start
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterarg2
- second workflow function parameterarg3
- third workflow function parameterarg4
- fourth workflow function parameterarg5
- sixth workflow function parameterpublic static <A1,A2,A3,A4,A5,A6,R> WorkflowExecution start(Functions.Func6<A1,A2,A3,A4,A5,A6,R> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6)
WorkflowClient
start
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow argumentarg2
- second workflow function parameterarg3
- third workflow function parameterarg4
- fourth workflow function parameterarg5
- sixth workflow function parameterarg6
- sixth workflow function parameterpublic static java.util.concurrent.CompletableFuture<java.lang.Void> execute(Functions.Proc workflow)
WorkflowClient
execute
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.public static <A1> java.util.concurrent.CompletableFuture<java.lang.Void> execute(Functions.Proc1<A1> workflow, A1 arg1)
WorkflowClient
execute
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterpublic static <A1,A2> java.util.concurrent.CompletableFuture<java.lang.Void> execute(Functions.Proc2<A1,A2> workflow, A1 arg1, A2 arg2)
WorkflowClient
execute
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterarg2
- second workflow function parameterpublic static <A1,A2,A3> java.util.concurrent.CompletableFuture<java.lang.Void> execute(Functions.Proc3<A1,A2,A3> workflow, A1 arg1, A2 arg2, A3 arg3)
WorkflowClient
execute
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterarg2
- second workflow function parameterarg3
- third workflow function parameterpublic static <A1,A2,A3,A4> java.util.concurrent.CompletableFuture<java.lang.Void> execute(Functions.Proc4<A1,A2,A3,A4> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4)
WorkflowClient
execute
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterarg2
- second workflow function parameterarg3
- third workflow function parameterarg4
- fourth workflow function parameterpublic static <A1,A2,A3,A4,A5> java.util.concurrent.CompletableFuture<java.lang.Void> execute(Functions.Proc5<A1,A2,A3,A4,A5> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)
WorkflowClient
execute
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterarg2
- second workflow function parameterarg3
- third workflow function parameterarg4
- fourth workflow function parameterarg5
- fifth workflow function parameterpublic static <A1,A2,A3,A4,A5,A6> java.util.concurrent.CompletableFuture<java.lang.Void> execute(Functions.Proc6<A1,A2,A3,A4,A5,A6> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6)
WorkflowClient
execute
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterarg2
- second workflow function parameterarg3
- third workflow function parameterarg4
- fourth workflow function parameterarg5
- sixth workflow function parameterarg6
- sixth workflow function parameterpublic static <R> java.util.concurrent.CompletableFuture<R> execute(Functions.Func<R> workflow)
WorkflowClient
execute
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.public static <A1,R> java.util.concurrent.CompletableFuture<R> execute(Functions.Func1<A1,R> workflow, A1 arg1)
WorkflowClient
execute
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow argumentpublic static <A1,A2,R> java.util.concurrent.CompletableFuture<R> execute(Functions.Func2<A1,A2,R> workflow, A1 arg1, A2 arg2)
WorkflowClient
execute
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterarg2
- second workflow function parameterpublic static <A1,A2,A3,R> java.util.concurrent.CompletableFuture<R> execute(Functions.Func3<A1,A2,A3,R> workflow, A1 arg1, A2 arg2, A3 arg3)
WorkflowClient
execute
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterarg2
- second workflow function parameterarg3
- third workflow function parameterpublic static <A1,A2,A3,A4,R> java.util.concurrent.CompletableFuture<R> execute(Functions.Func4<A1,A2,A3,A4,R> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4)
WorkflowClient
execute
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterarg2
- second workflow function parameterarg3
- third workflow function parameterarg4
- fourth workflow function parameterpublic static <A1,A2,A3,A4,A5,R> java.util.concurrent.CompletableFuture<R> execute(Functions.Func5<A1,A2,A3,A4,A5,R> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)
WorkflowClient
execute
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow function parameterarg2
- second workflow function parameterarg3
- third workflow function parameterarg4
- fourth workflow function parameterarg5
- sixth workflow function parameterpublic static <A1,A2,A3,A4,A5,A6,R> java.util.concurrent.CompletableFuture<R> execute(Functions.Func6<A1,A2,A3,A4,A5,A6,R> workflow, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6)
WorkflowClient
execute
in interface WorkflowClient
workflow
- The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow argumentarg2
- second workflow function parameterarg3
- third workflow function parameterarg4
- fourth workflow function parameterarg5
- sixth workflow function parameterarg6
- sixth workflow function parameter