public final class TestWorkflowService extends java.lang.Object implements IWorkflowService
TestWorkflowEnvironment
.Constructor and Description |
---|
TestWorkflowService() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.lang.String |
continueAsNew(StartWorkflowExecutionRequest previousRunStartRequest,
WorkflowExecutionContinuedAsNewEventAttributes a,
java.lang.String identity,
com.uber.cadence.internal.testservice.ExecutionId executionId,
java.util.Optional<com.uber.cadence.internal.testservice.TestWorkflowMutableState> parent)
Creates next run of a workflow execution
|
long |
currentTimeMillis() |
void |
DeprecateDomain(DeprecateDomainRequest deprecateRequest)
DeprecateDomain us used to update status of a registered domain to DEPRECATED.
|
void |
DeprecateDomain(DeprecateDomainRequest deprecateRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
DescribeDomainResponse |
DescribeDomain(DescribeDomainRequest describeRequest)
DescribeDomain returns the information and configuration for a registered domain.
|
void |
DescribeDomain(DescribeDomainRequest describeRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
DescribeTaskListResponse |
DescribeTaskList(DescribeTaskListRequest request)
DescribeTaskList returns information about the target tasklist, right now this API returns the
pollers which polled this tasklist in last few minutes.
|
void |
DescribeTaskList(DescribeTaskListRequest request,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
DescribeWorkflowExecutionResponse |
DescribeWorkflowExecution(DescribeWorkflowExecutionRequest describeRequest)
DescribeWorkflowExecution returns information about the specified workflow execution.
|
void |
DescribeWorkflowExecution(DescribeWorkflowExecutionRequest describeRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
getDiagnostics(java.lang.StringBuilder result)
Adds diagnostic data about internal service state to the provided
StringBuilder . |
GetWorkflowExecutionHistoryResponse |
GetWorkflowExecutionHistory(GetWorkflowExecutionHistoryRequest getRequest)
Returns the history of specified workflow execution.
|
void |
GetWorkflowExecutionHistory(GetWorkflowExecutionHistoryRequest getRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
ListClosedWorkflowExecutionsResponse |
ListClosedWorkflowExecutions(ListClosedWorkflowExecutionsRequest listRequest)
ListClosedWorkflowExecutions is a visibility API to list the closed executions in a specific domain.
|
void |
ListClosedWorkflowExecutions(ListClosedWorkflowExecutionsRequest listRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
ListOpenWorkflowExecutionsResponse |
ListOpenWorkflowExecutions(ListOpenWorkflowExecutionsRequest listRequest)
ListOpenWorkflowExecutions is a visibility API to list the open executions in a specific domain.
|
void |
ListOpenWorkflowExecutions(ListOpenWorkflowExecutionsRequest listRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
lockTimeSkipping()
Disables time skipping.
|
PollForActivityTaskResponse |
PollForActivityTask(PollForActivityTaskRequest pollRequest)
PollForActivityTask is called by application worker to process ActivityTask from a specific taskList.
|
void |
PollForActivityTask(PollForActivityTaskRequest pollRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
PollForDecisionTaskResponse |
PollForDecisionTask(PollForDecisionTaskRequest pollRequest)
PollForDecisionTask is called by application worker to process DecisionTask from a specific taskList.
|
void |
PollForDecisionTask(PollForDecisionTaskRequest pollRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
QueryWorkflowResponse |
QueryWorkflow(QueryWorkflowRequest queryRequest)
QueryWorkflow returns query result for a specified workflow execution
|
void |
QueryWorkflow(QueryWorkflowRequest queryRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
RecordActivityTaskHeartbeatResponse |
RecordActivityTaskHeartbeat(RecordActivityTaskHeartbeatRequest heartbeatRequest)
RecordActivityTaskHeartbeat is called by application worker while it is processing an ActivityTask.
|
void |
RecordActivityTaskHeartbeat(RecordActivityTaskHeartbeatRequest heartbeatRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
registerDelayedCallback(java.time.Duration delay,
java.lang.Runnable r)
Invokes callback after the specified delay according to internal service clock.
|
void |
RegisterDomain(RegisterDomainRequest registerRequest)
RegisterDomain creates a new domain which can be used as a container for all resources.
|
void |
RegisterDomain(RegisterDomainRequest registerRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RequestCancelWorkflowExecution(RequestCancelWorkflowExecutionRequest cancelRequest)
RequestCancelWorkflowExecution is called by application worker when it wants to request cancellation of a workflow instance.
|
void |
RequestCancelWorkflowExecution(RequestCancelWorkflowExecutionRequest cancelRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RespondActivityTaskCanceled(RespondActivityTaskCanceledRequest canceledRequest)
RespondActivityTaskCanceled is called by application worker when it is successfully canceled an ActivityTask.
|
void |
RespondActivityTaskCanceled(RespondActivityTaskCanceledRequest canceledRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RespondActivityTaskCanceledByID(RespondActivityTaskCanceledByIDRequest canceledRequest)
RespondActivityTaskCanceledByID is called by application worker when it is successfully canceled an ActivityTask.
|
void |
RespondActivityTaskCanceledByID(RespondActivityTaskCanceledByIDRequest canceledRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RespondActivityTaskCompleted(RespondActivityTaskCompletedRequest completeRequest)
RespondActivityTaskCompleted is called by application worker when it is done processing an ActivityTask.
|
void |
RespondActivityTaskCompleted(RespondActivityTaskCompletedRequest completeRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RespondActivityTaskCompletedByID(RespondActivityTaskCompletedByIDRequest completeRequest)
RespondActivityTaskCompletedByID is called by application worker when it is done processing an ActivityTask.
|
void |
RespondActivityTaskCompletedByID(RespondActivityTaskCompletedByIDRequest completeRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RespondActivityTaskFailed(RespondActivityTaskFailedRequest failRequest)
RespondActivityTaskFailed is called by application worker when it is done processing an ActivityTask.
|
void |
RespondActivityTaskFailed(RespondActivityTaskFailedRequest failRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RespondActivityTaskFailedByID(RespondActivityTaskFailedByIDRequest failRequest)
RespondActivityTaskFailedByID is called by application worker when it is done processing an ActivityTask.
|
void |
RespondActivityTaskFailedByID(RespondActivityTaskFailedByIDRequest failRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RespondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest request)
RespondDecisionTaskCompleted is called by application worker to complete a DecisionTask handed as a result of
'PollForDecisionTask' API call.
|
void |
RespondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest completeRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RespondDecisionTaskFailed(RespondDecisionTaskFailedRequest failedRequest)
RespondDecisionTaskFailed is called by application worker to indicate failure.
|
void |
RespondDecisionTaskFailed(RespondDecisionTaskFailedRequest failedRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
RespondQueryTaskCompleted(RespondQueryTaskCompletedRequest completeRequest)
RespondQueryTaskCompleted is called by application worker to complete a QueryTask (which is a DecisionTask for query)
as a result of 'PollForDecisionTask' API call.
|
void |
RespondQueryTaskCompleted(RespondQueryTaskCompletedRequest completeRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
signalExternalWorkflowExecution(java.lang.String signalId,
SignalExternalWorkflowExecutionDecisionAttributes a,
com.uber.cadence.internal.testservice.TestWorkflowMutableState source) |
void |
SignalWorkflowExecution(SignalWorkflowExecutionRequest signalRequest)
SignalWorkflowExecution is used to send a signal event to running workflow execution.
|
void |
SignalWorkflowExecution(SignalWorkflowExecutionRequest signalRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
sleep(java.time.Duration duration)
Blocks calling thread until internal clock doesn't pass the current + duration time.
|
StartWorkflowExecutionResponse |
StartWorkflowExecution(StartWorkflowExecutionRequest startRequest)
StartWorkflowExecution starts a new long running workflow instance.
|
void |
StartWorkflowExecution(StartWorkflowExecutionRequest startRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
TerminateWorkflowExecution(TerminateWorkflowExecutionRequest terminateRequest)
TerminateWorkflowExecution terminates an existing workflow execution by recording WorkflowExecutionTerminated event
in the history and immediately terminating the execution instance.
|
void |
TerminateWorkflowExecution(TerminateWorkflowExecutionRequest terminateRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
void |
unlockTimeSkipping() |
UpdateDomainResponse |
UpdateDomain(UpdateDomainRequest updateRequest)
UpdateDomain is used to update the information and configuration for a registered domain.
|
void |
UpdateDomain(UpdateDomainRequest updateRequest,
org.apache.thrift.async.AsyncMethodCallback resultHandler) |
public void close()
public void RegisterDomain(RegisterDomainRequest registerRequest) throws BadRequestError, InternalServiceError, DomainAlreadyExistsError, org.apache.thrift.TException
WorkflowService.Iface
RegisterDomain
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
DomainAlreadyExistsError
org.apache.thrift.TException
public DescribeDomainResponse DescribeDomain(DescribeDomainRequest describeRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
DescribeDomain
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public UpdateDomainResponse UpdateDomain(UpdateDomainRequest updateRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
UpdateDomain
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public void DeprecateDomain(DeprecateDomainRequest deprecateRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
DeprecateDomain
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public StartWorkflowExecutionResponse StartWorkflowExecution(StartWorkflowExecutionRequest startRequest) throws BadRequestError, InternalServiceError, WorkflowExecutionAlreadyStartedError, ServiceBusyError, org.apache.thrift.TException
WorkflowService.Iface
StartWorkflowExecution
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
WorkflowExecutionAlreadyStartedError
ServiceBusyError
org.apache.thrift.TException
public GetWorkflowExecutionHistoryResponse GetWorkflowExecutionHistory(GetWorkflowExecutionHistoryRequest getRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, ServiceBusyError, org.apache.thrift.TException
WorkflowService.Iface
GetWorkflowExecutionHistory
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
ServiceBusyError
org.apache.thrift.TException
public PollForDecisionTaskResponse PollForDecisionTask(PollForDecisionTaskRequest pollRequest) throws BadRequestError, InternalServiceError, ServiceBusyError, org.apache.thrift.TException
WorkflowService.Iface
PollForDecisionTask
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
ServiceBusyError
org.apache.thrift.TException
public void RespondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest request) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RespondDecisionTaskCompleted
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public void RespondDecisionTaskFailed(RespondDecisionTaskFailedRequest failedRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RespondDecisionTaskFailed
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public PollForActivityTaskResponse PollForActivityTask(PollForActivityTaskRequest pollRequest) throws BadRequestError, InternalServiceError, ServiceBusyError, org.apache.thrift.TException
WorkflowService.Iface
PollForActivityTask
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
ServiceBusyError
org.apache.thrift.TException
public RecordActivityTaskHeartbeatResponse RecordActivityTaskHeartbeat(RecordActivityTaskHeartbeatRequest heartbeatRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RecordActivityTaskHeartbeat
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public void RespondActivityTaskCompleted(RespondActivityTaskCompletedRequest completeRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RespondActivityTaskCompleted
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public void RespondActivityTaskCompletedByID(RespondActivityTaskCompletedByIDRequest completeRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RespondActivityTaskCompletedByID
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public void RespondActivityTaskFailed(RespondActivityTaskFailedRequest failRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RespondActivityTaskFailed
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public void RespondActivityTaskFailedByID(RespondActivityTaskFailedByIDRequest failRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RespondActivityTaskFailedByID
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public void RespondActivityTaskCanceled(RespondActivityTaskCanceledRequest canceledRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RespondActivityTaskCanceled
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public void RespondActivityTaskCanceledByID(RespondActivityTaskCanceledByIDRequest canceledRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RespondActivityTaskCanceledByID
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public void RequestCancelWorkflowExecution(RequestCancelWorkflowExecutionRequest cancelRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, CancellationAlreadyRequestedError, ServiceBusyError, org.apache.thrift.TException
WorkflowService.Iface
RequestCancelWorkflowExecution
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
CancellationAlreadyRequestedError
ServiceBusyError
org.apache.thrift.TException
public void SignalWorkflowExecution(SignalWorkflowExecutionRequest signalRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, ServiceBusyError, org.apache.thrift.TException
WorkflowService.Iface
SignalWorkflowExecution
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
ServiceBusyError
org.apache.thrift.TException
public void signalExternalWorkflowExecution(java.lang.String signalId, SignalExternalWorkflowExecutionDecisionAttributes a, com.uber.cadence.internal.testservice.TestWorkflowMutableState source) throws InternalServiceError, EntityNotExistsError, BadRequestError
public void TerminateWorkflowExecution(TerminateWorkflowExecutionRequest terminateRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, ServiceBusyError, org.apache.thrift.TException
WorkflowService.Iface
TerminateWorkflowExecution
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
ServiceBusyError
org.apache.thrift.TException
public java.lang.String continueAsNew(StartWorkflowExecutionRequest previousRunStartRequest, WorkflowExecutionContinuedAsNewEventAttributes a, java.lang.String identity, com.uber.cadence.internal.testservice.ExecutionId executionId, java.util.Optional<com.uber.cadence.internal.testservice.TestWorkflowMutableState> parent) throws InternalServiceError, BadRequestError
InternalServiceError
BadRequestError
public ListOpenWorkflowExecutionsResponse ListOpenWorkflowExecutions(ListOpenWorkflowExecutionsRequest listRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, ServiceBusyError, org.apache.thrift.TException
WorkflowService.Iface
ListOpenWorkflowExecutions
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
ServiceBusyError
org.apache.thrift.TException
public ListClosedWorkflowExecutionsResponse ListClosedWorkflowExecutions(ListClosedWorkflowExecutionsRequest listRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, ServiceBusyError, org.apache.thrift.TException
WorkflowService.Iface
ListClosedWorkflowExecutions
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
ServiceBusyError
org.apache.thrift.TException
public void RespondQueryTaskCompleted(RespondQueryTaskCompletedRequest completeRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
RespondQueryTaskCompleted
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public QueryWorkflowResponse QueryWorkflow(QueryWorkflowRequest queryRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, QueryFailedError, org.apache.thrift.TException
WorkflowService.Iface
QueryWorkflow
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
QueryFailedError
org.apache.thrift.TException
public DescribeWorkflowExecutionResponse DescribeWorkflowExecution(DescribeWorkflowExecutionRequest describeRequest) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
DescribeWorkflowExecution
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public DescribeTaskListResponse DescribeTaskList(DescribeTaskListRequest request) throws BadRequestError, InternalServiceError, EntityNotExistsError, org.apache.thrift.TException
WorkflowService.Iface
DescribeTaskList
in interface WorkflowService.Iface
BadRequestError
InternalServiceError
EntityNotExistsError
org.apache.thrift.TException
public void RegisterDomain(RegisterDomainRequest registerRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RegisterDomain
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void DescribeDomain(DescribeDomainRequest describeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
DescribeDomain
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void UpdateDomain(UpdateDomainRequest updateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
UpdateDomain
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void DeprecateDomain(DeprecateDomainRequest deprecateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
DeprecateDomain
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void StartWorkflowExecution(StartWorkflowExecutionRequest startRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
StartWorkflowExecution
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void GetWorkflowExecutionHistory(GetWorkflowExecutionHistoryRequest getRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
GetWorkflowExecutionHistory
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void PollForDecisionTask(PollForDecisionTaskRequest pollRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
PollForDecisionTask
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RespondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RespondDecisionTaskCompleted
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RespondDecisionTaskFailed(RespondDecisionTaskFailedRequest failedRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RespondDecisionTaskFailed
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void PollForActivityTask(PollForActivityTaskRequest pollRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
PollForActivityTask
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RecordActivityTaskHeartbeat(RecordActivityTaskHeartbeatRequest heartbeatRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RecordActivityTaskHeartbeat
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RespondActivityTaskCompleted(RespondActivityTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RespondActivityTaskCompleted
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RespondActivityTaskCompletedByID(RespondActivityTaskCompletedByIDRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RespondActivityTaskCompletedByID
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RespondActivityTaskFailed(RespondActivityTaskFailedRequest failRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RespondActivityTaskFailed
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RespondActivityTaskFailedByID(RespondActivityTaskFailedByIDRequest failRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RespondActivityTaskFailedByID
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RespondActivityTaskCanceled(RespondActivityTaskCanceledRequest canceledRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RespondActivityTaskCanceled
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RespondActivityTaskCanceledByID(RespondActivityTaskCanceledByIDRequest canceledRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RespondActivityTaskCanceledByID
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RequestCancelWorkflowExecution(RequestCancelWorkflowExecutionRequest cancelRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RequestCancelWorkflowExecution
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void SignalWorkflowExecution(SignalWorkflowExecutionRequest signalRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
SignalWorkflowExecution
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void TerminateWorkflowExecution(TerminateWorkflowExecutionRequest terminateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
TerminateWorkflowExecution
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void ListOpenWorkflowExecutions(ListOpenWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
ListOpenWorkflowExecutions
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void ListClosedWorkflowExecutions(ListClosedWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
ListClosedWorkflowExecutions
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void RespondQueryTaskCompleted(RespondQueryTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
RespondQueryTaskCompleted
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void QueryWorkflow(QueryWorkflowRequest queryRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
QueryWorkflow
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void DescribeWorkflowExecution(DescribeWorkflowExecutionRequest describeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
DescribeWorkflowExecution
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void DescribeTaskList(DescribeTaskListRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException
DescribeTaskList
in interface WorkflowService.AsyncIface
org.apache.thrift.TException
public void getDiagnostics(java.lang.StringBuilder result)
StringBuilder
.
Currently includes histories of all workflow instances stored in the service.public long currentTimeMillis()
public void registerDelayedCallback(java.time.Duration delay, java.lang.Runnable r)
public void lockTimeSkipping()
unlockTimeSkipping()
. These calls are
counted, so calling unlock does not guarantee that time is going to be skipped immediately as
another lock can be holding it.public void unlockTimeSkipping()
public void sleep(java.time.Duration duration)