Package com.uber.cadence.serviceclient
Interface IWorkflowService
-
- All Superinterfaces:
WorkflowService.AsyncIface
,WorkflowService.Iface
- All Known Implementing Classes:
IWorkflowServiceBase
,MigrationIWorkflowService
,TestWorkflowEnvironmentInternal.WorkflowServiceWrapper
,TestWorkflowService
,Thrift2ProtoAdapter
,WorkflowServiceTChannel
public interface IWorkflowService extends WorkflowService.Iface, WorkflowService.AsyncIface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
GetWorkflowExecutionHistoryResponse
GetWorkflowExecutionHistoryWithTimeout(GetWorkflowExecutionHistoryRequest getRequest, java.lang.Long timeoutInMillis)
GetWorkflowExecutionHistoryWithTimeout get workflow history same as GetWorkflowExecutionHistory but with timeout.void
GetWorkflowExecutionHistoryWithTimeout(GetWorkflowExecutionHistoryRequest getRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, java.lang.Long timeoutInMillis)
GetWorkflowExecutionHistoryWithTimeout get workflow history asynchronously same as GetWorkflowExecutionHistory but with timeout.java.util.concurrent.CompletableFuture<java.lang.Boolean>
isHealthy()
Checks if we have a valid connection to the Cadence cluster, and potentially resets the peer listvoid
SignalWorkflowExecutionWithTimeout(SignalWorkflowExecutionRequest signalRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, java.lang.Long timeoutInMillis)
SignalWorkflowExecutionWithTimeout signal workflow same as SignalWorkflowExecution but with timeoutvoid
StartWorkflowExecutionWithTimeout(StartWorkflowExecutionRequest startRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, java.lang.Long timeoutInMillis)
StartWorkflowExecutionWithTimeout start workflow same as StartWorkflowExecution but with timeout-
Methods inherited from interface com.uber.cadence.WorkflowService.AsyncIface
CountWorkflowExecutions, DeprecateDomain, DescribeDomain, DescribeTaskList, DescribeWorkflowExecution, GetClusterInfo, GetSearchAttributes, GetTaskListsByDomain, GetWorkflowExecutionHistory, ListArchivedWorkflowExecutions, ListClosedWorkflowExecutions, ListDomains, ListOpenWorkflowExecutions, ListTaskListPartitions, ListWorkflowExecutions, PollForActivityTask, PollForDecisionTask, QueryWorkflow, RecordActivityTaskHeartbeat, RecordActivityTaskHeartbeatByID, RefreshWorkflowTasks, RegisterDomain, RequestCancelWorkflowExecution, ResetStickyTaskList, ResetWorkflowExecution, RespondActivityTaskCanceled, RespondActivityTaskCanceledByID, RespondActivityTaskCompleted, RespondActivityTaskCompletedByID, RespondActivityTaskFailed, RespondActivityTaskFailedByID, RespondDecisionTaskCompleted, RespondDecisionTaskFailed, RespondQueryTaskCompleted, ScanWorkflowExecutions, SignalWithStartWorkflowExecution, SignalWorkflowExecution, StartWorkflowExecution, TerminateWorkflowExecution, UpdateDomain
-
Methods inherited from interface com.uber.cadence.WorkflowService.Iface
CountWorkflowExecutions, DeprecateDomain, DescribeDomain, DescribeTaskList, DescribeWorkflowExecution, GetClusterInfo, GetSearchAttributes, GetTaskListsByDomain, GetWorkflowExecutionHistory, ListArchivedWorkflowExecutions, ListClosedWorkflowExecutions, ListDomains, ListOpenWorkflowExecutions, ListTaskListPartitions, ListWorkflowExecutions, PollForActivityTask, PollForDecisionTask, QueryWorkflow, RecordActivityTaskHeartbeat, RecordActivityTaskHeartbeatByID, RefreshWorkflowTasks, RegisterDomain, RequestCancelWorkflowExecution, ResetStickyTaskList, ResetWorkflowExecution, RespondActivityTaskCanceled, RespondActivityTaskCanceledByID, RespondActivityTaskCompleted, RespondActivityTaskCompletedByID, RespondActivityTaskFailed, RespondActivityTaskFailedByID, RespondDecisionTaskCompleted, RespondDecisionTaskFailed, RespondQueryTaskCompleted, ScanWorkflowExecutions, SignalWithStartWorkflowExecution, SignalWorkflowExecution, StartWorkflowExecution, TerminateWorkflowExecution, UpdateDomain
-
-
-
-
Method Detail
-
close
void close()
-
StartWorkflowExecutionWithTimeout
void StartWorkflowExecutionWithTimeout(StartWorkflowExecutionRequest startRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, java.lang.Long timeoutInMillis) throws org.apache.thrift.TException
StartWorkflowExecutionWithTimeout start workflow same as StartWorkflowExecution but with timeout- Parameters:
startRequest
-resultHandler
-timeoutInMillis
-- Throws:
org.apache.thrift.TException
-
GetWorkflowExecutionHistoryWithTimeout
GetWorkflowExecutionHistoryResponse GetWorkflowExecutionHistoryWithTimeout(GetWorkflowExecutionHistoryRequest getRequest, java.lang.Long timeoutInMillis) throws org.apache.thrift.TException
GetWorkflowExecutionHistoryWithTimeout get workflow history same as GetWorkflowExecutionHistory but with timeout.- Parameters:
getRequest
-timeoutInMillis
-- Returns:
- GetWorkflowExecutionHistoryResponse
- Throws:
org.apache.thrift.TException
-
GetWorkflowExecutionHistoryWithTimeout
void GetWorkflowExecutionHistoryWithTimeout(GetWorkflowExecutionHistoryRequest getRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, java.lang.Long timeoutInMillis) throws org.apache.thrift.TException
GetWorkflowExecutionHistoryWithTimeout get workflow history asynchronously same as GetWorkflowExecutionHistory but with timeout.- Parameters:
getRequest
-resultHandler
-timeoutInMillis
-- Throws:
org.apache.thrift.TException
-
SignalWorkflowExecutionWithTimeout
void SignalWorkflowExecutionWithTimeout(SignalWorkflowExecutionRequest signalRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, java.lang.Long timeoutInMillis) throws org.apache.thrift.TException
SignalWorkflowExecutionWithTimeout signal workflow same as SignalWorkflowExecution but with timeout- Parameters:
signalRequest
-resultHandler
-timeoutInMillis
-- Throws:
org.apache.thrift.TException
-
isHealthy
java.util.concurrent.CompletableFuture<java.lang.Boolean> isHealthy()
Checks if we have a valid connection to the Cadence cluster, and potentially resets the peer list
-
-