Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.uber.cadence.WorkflowService Maven / Gradle / Ivy
/**
* Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.uber.cadence;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
import org.apache.thrift.async.AsyncMethodCallback;
import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.HashSet;
import java.util.EnumSet;
import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2019-04-30")
public class WorkflowService {
/**
* WorkflowService API is exposed to provide support for long running applications. Application is expected to call
* StartWorkflowExecution to create an instance for each instance of long running workflow. Such applications are expected
* to have a worker which regularly polls for DecisionTask and ActivityTask from the WorkflowService. For each
* DecisionTask, application is expected to process the history of events for that session and respond back with next
* decisions. For each ActivityTask, application is expected to execute the actual logic for that task and respond back
* with completion or failure. Worker is expected to regularly heartbeat while activity task is running.
*
*/
public interface Iface {
/**
* RegisterDomain creates a new domain which can be used as a container for all resources. Domain is a top level
* entity within Cadence, used as a container for all resources like workflow executions, tasklists, etc. Domain
* acts as a sandbox and provides isolation for all resources within the domain. All resources belongs to exactly one
* domain.
*
*
* @param registerRequest
*/
public void RegisterDomain(com.uber.cadence.RegisterDomainRequest registerRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.DomainAlreadyExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException;
/**
* DescribeDomain returns the information and configuration for a registered domain.
*
*
* @param describeRequest
*/
public com.uber.cadence.DescribeDomainResponse DescribeDomain(com.uber.cadence.DescribeDomainRequest describeRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException;
/**
* ListDomains returns the information and configuration for all domains.
*
*
* @param listRequest
*/
public com.uber.cadence.ListDomainsResponse ListDomains(com.uber.cadence.ListDomainsRequest listRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException;
/**
* UpdateDomain is used to update the information and configuration for a registered domain.
*
*
* @param updateRequest
*/
public com.uber.cadence.UpdateDomainResponse UpdateDomain(com.uber.cadence.UpdateDomainRequest updateRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException;
/**
* DeprecateDomain us used to update status of a registered domain to DEPRECATED. Once the domain is deprecated
* it cannot be used to start new workflow executions. Existing workflow executions will continue to run on
* deprecated domains.
*
*
* @param deprecateRequest
*/
public void DeprecateDomain(com.uber.cadence.DeprecateDomainRequest deprecateRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException;
/**
* StartWorkflowExecution starts a new long running workflow instance. It will create the instance with
* 'WorkflowExecutionStarted' event in history and also schedule the first DecisionTask for the worker to make the
* first decision for this instance. It will return 'WorkflowExecutionAlreadyStartedError', if an instance already
* exists with same workflowId.
*
*
* @param startRequest
*/
public com.uber.cadence.StartWorkflowExecutionResponse StartWorkflowExecution(com.uber.cadence.StartWorkflowExecutionRequest startRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.WorkflowExecutionAlreadyStartedError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.EntityNotExistsError, org.apache.thrift.TException;
/**
* Returns the history of specified workflow execution. It fails with 'EntityNotExistError' if speficied workflow
* execution in unknown to the service.
*
*
* @param getRequest
*/
public com.uber.cadence.GetWorkflowExecutionHistoryResponse GetWorkflowExecutionHistory(com.uber.cadence.GetWorkflowExecutionHistoryRequest getRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException;
/**
* PollForDecisionTask is called by application worker to process DecisionTask from a specific taskList. A
* DecisionTask is dispatched to callers for active workflow executions, with pending decisions.
* Application is then expected to call 'RespondDecisionTaskCompleted' API when it is done processing the DecisionTask.
* It will also create a 'DecisionTaskStarted' event in the history for that session before handing off DecisionTask to
* application worker.
*
*
* @param pollRequest
*/
public com.uber.cadence.PollForDecisionTaskResponse PollForDecisionTask(com.uber.cadence.PollForDecisionTaskRequest pollRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.ServiceBusyError, com.uber.cadence.LimitExceededError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException;
/**
* RespondDecisionTaskCompleted is called by application worker to complete a DecisionTask handed as a result of
* 'PollForDecisionTask' API call. Completing a DecisionTask will result in new events for the workflow execution and
* potentially new ActivityTask being created for corresponding decisions. It will also create a DecisionTaskCompleted
* event in the history for that session. Use the 'taskToken' provided as response of PollForDecisionTask API call
* for completing the DecisionTask.
* The response could contain a new decision task if there is one or if the request asking for one.
*
*
* @param completeRequest
*/
public com.uber.cadence.RespondDecisionTaskCompletedResponse RespondDecisionTaskCompleted(com.uber.cadence.RespondDecisionTaskCompletedRequest completeRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException;
/**
* RespondDecisionTaskFailed is called by application worker to indicate failure. This results in
* DecisionTaskFailedEvent written to the history and a new DecisionTask created. This API can be used by client to
* either clear sticky tasklist or report any panics during DecisionTask processing. Cadence will only append first
* DecisionTaskFailed event to the history of workflow execution for consecutive failures.
*
*
* @param failedRequest
*/
public void RespondDecisionTaskFailed(com.uber.cadence.RespondDecisionTaskFailedRequest failedRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException;
/**
* PollForActivityTask is called by application worker to process ActivityTask from a specific taskList. ActivityTask
* is dispatched to callers whenever a ScheduleTask decision is made for a workflow execution.
* Application is expected to call 'RespondActivityTaskCompleted' or 'RespondActivityTaskFailed' once it is done
* processing the task.
* Application also needs to call 'RecordActivityTaskHeartbeat' API within 'heartbeatTimeoutSeconds' interval to
* prevent the task from getting timed out. An event 'ActivityTaskStarted' event is also written to workflow execution
* history before the ActivityTask is dispatched to application worker.
*
*
* @param pollRequest
*/
public com.uber.cadence.PollForActivityTaskResponse PollForActivityTask(com.uber.cadence.PollForActivityTaskRequest pollRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.ServiceBusyError, com.uber.cadence.LimitExceededError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException;
/**
* RecordActivityTaskHeartbeat is called by application worker while it is processing an ActivityTask. If worker fails
* to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as timedout and
* 'ActivityTaskTimedOut' event will be written to the workflow history. Calling 'RecordActivityTaskHeartbeat' will
* fail with 'EntityNotExistsError' in such situations. Use the 'taskToken' provided as response of
* PollForActivityTask API call for heartbeating.
*
*
* @param heartbeatRequest
*/
public com.uber.cadence.RecordActivityTaskHeartbeatResponse RecordActivityTaskHeartbeat(com.uber.cadence.RecordActivityTaskHeartbeatRequest heartbeatRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException;
/**
* RecordActivityTaskHeartbeatByID is called by application worker while it is processing an ActivityTask. If worker fails
* to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as timedout and
* 'ActivityTaskTimedOut' event will be written to the workflow history. Calling 'RecordActivityTaskHeartbeatByID' will
* fail with 'EntityNotExistsError' in such situations. Instead of using 'taskToken' like in RecordActivityTaskHeartbeat,
* use Domain, WorkflowID and ActivityID
*
*
* @param heartbeatRequest
*/
public com.uber.cadence.RecordActivityTaskHeartbeatResponse RecordActivityTaskHeartbeatByID(com.uber.cadence.RecordActivityTaskHeartbeatByIDRequest heartbeatRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException;
/**
* RespondActivityTaskCompleted is called by application worker when it is done processing an ActivityTask. It will
* result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask
* created for the workflow so new decisions could be made. Use the 'taskToken' provided as response of
* PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid
* anymore due to activity timeout.
*
*
* @param completeRequest
*/
public void RespondActivityTaskCompleted(com.uber.cadence.RespondActivityTaskCompletedRequest completeRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException;
/**
* RespondActivityTaskCompletedByID is called by application worker when it is done processing an ActivityTask.
* It will result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask
* created for the workflow so new decisions could be made. Similar to RespondActivityTaskCompleted but use Domain,
* WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError'
* if the these IDs are not valid anymore due to activity timeout.
*
*
* @param completeRequest
*/
public void RespondActivityTaskCompletedByID(com.uber.cadence.RespondActivityTaskCompletedByIDRequest completeRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException;
/**
* RespondActivityTaskFailed is called by application worker when it is done processing an ActivityTask. It will
* result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask
* created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of
* PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid
* anymore due to activity timeout.
*
*
* @param failRequest
*/
public void RespondActivityTaskFailed(com.uber.cadence.RespondActivityTaskFailedRequest failRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException;
/**
* RespondActivityTaskFailedByID is called by application worker when it is done processing an ActivityTask.
* It will result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask
* created for the workflow instance so new decisions could be made. Similar to RespondActivityTaskFailed but use
* Domain, WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError'
* if the these IDs are not valid anymore due to activity timeout.
*
*
* @param failRequest
*/
public void RespondActivityTaskFailedByID(com.uber.cadence.RespondActivityTaskFailedByIDRequest failRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException;
/**
* RespondActivityTaskCanceled is called by application worker when it is successfully canceled an ActivityTask. It will
* result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask
* created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of
* PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid
* anymore due to activity timeout.
*
*
* @param canceledRequest
*/
public void RespondActivityTaskCanceled(com.uber.cadence.RespondActivityTaskCanceledRequest canceledRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException;
/**
* RespondActivityTaskCanceledByID is called by application worker when it is successfully canceled an ActivityTask.
* It will result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask
* created for the workflow instance so new decisions could be made. Similar to RespondActivityTaskCanceled but use
* Domain, WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError'
* if the these IDs are not valid anymore due to activity timeout.
*
*
* @param canceledRequest
*/
public void RespondActivityTaskCanceledByID(com.uber.cadence.RespondActivityTaskCanceledByIDRequest canceledRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException;
/**
* RequestCancelWorkflowExecution is called by application worker when it wants to request cancellation of a workflow instance.
* It will result in a new 'WorkflowExecutionCancelRequested' event being written to the workflow history and a new DecisionTask
* created for the workflow instance so new decisions could be made. It fails with 'EntityNotExistsError' if the workflow is not valid
* anymore due to completion or doesn't exist.
*
*
* @param cancelRequest
*/
public void RequestCancelWorkflowExecution(com.uber.cadence.RequestCancelWorkflowExecutionRequest cancelRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.CancellationAlreadyRequestedError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, org.apache.thrift.TException;
/**
* SignalWorkflowExecution is used to send a signal event to running workflow execution. This results in
* WorkflowExecutionSignaled event recorded in the history and a decision task being created for the execution.
*
*
* @param signalRequest
*/
public void SignalWorkflowExecution(com.uber.cadence.SignalWorkflowExecutionRequest signalRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, org.apache.thrift.TException;
/**
* SignalWithStartWorkflowExecution is used to ensure sending signal to a workflow.
* If the workflow is running, this results in WorkflowExecutionSignaled event being recorded in the history
* and a decision task being created for the execution.
* If the workflow is not running or not found, this results in WorkflowExecutionStarted and WorkflowExecutionSignaled
* events being recorded in history, and a decision task being created for the execution
*
*
* @param signalWithStartRequest
*/
public com.uber.cadence.StartWorkflowExecutionResponse SignalWithStartWorkflowExecution(com.uber.cadence.SignalWithStartWorkflowExecutionRequest signalWithStartRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.WorkflowExecutionAlreadyStartedError, org.apache.thrift.TException;
/**
* TerminateWorkflowExecution terminates an existing workflow execution by recording WorkflowExecutionTerminated event
* in the history and immediately terminating the execution instance.
*
*
* @param terminateRequest
*/
public void TerminateWorkflowExecution(com.uber.cadence.TerminateWorkflowExecutionRequest terminateRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, org.apache.thrift.TException;
/**
* ListOpenWorkflowExecutions is a visibility API to list the open executions in a specific domain.
*
*
* @param listRequest
*/
public com.uber.cadence.ListOpenWorkflowExecutionsResponse ListOpenWorkflowExecutions(com.uber.cadence.ListOpenWorkflowExecutionsRequest listRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.LimitExceededError, org.apache.thrift.TException;
/**
* ListClosedWorkflowExecutions is a visibility API to list the closed executions in a specific domain.
*
*
* @param listRequest
*/
public com.uber.cadence.ListClosedWorkflowExecutionsResponse ListClosedWorkflowExecutions(com.uber.cadence.ListClosedWorkflowExecutionsRequest listRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException;
/**
* RespondQueryTaskCompleted is called by application worker to complete a QueryTask (which is a DecisionTask for query)
* as a result of 'PollForDecisionTask' API call. Completing a QueryTask will unblock the client call to 'QueryWorkflow'
* API and return the query result to client as a response to 'QueryWorkflow' API call.
*
*
* @param completeRequest
*/
public void RespondQueryTaskCompleted(com.uber.cadence.RespondQueryTaskCompletedRequest completeRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException;
/**
* Reset the sticky tasklist related information in mutable state of a given workflow.
* Things cleared are:
* 1. StickyTaskList
* 2. StickyScheduleToStartTimeout
* 3. ClientLibraryVersion
* 4. ClientFeatureVersion
* 5. ClientImpl
*
*
* @param resetRequest
*/
public com.uber.cadence.ResetStickyTaskListResponse ResetStickyTaskList(com.uber.cadence.ResetStickyTaskListRequest resetRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException;
/**
* QueryWorkflow returns query result for a specified workflow execution
*
*
* @param queryRequest
*/
public com.uber.cadence.QueryWorkflowResponse QueryWorkflow(com.uber.cadence.QueryWorkflowRequest queryRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.QueryFailedError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException;
/**
* DescribeWorkflowExecution returns information about the specified workflow execution.
*
*
* @param describeRequest
*/
public com.uber.cadence.DescribeWorkflowExecutionResponse DescribeWorkflowExecution(com.uber.cadence.DescribeWorkflowExecutionRequest describeRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException;
/**
* DescribeTaskList returns information about the target tasklist, right now this API returns the
* pollers which polled this tasklist in last few minutes.
*
*
* @param request
*/
public com.uber.cadence.DescribeTaskListResponse DescribeTaskList(com.uber.cadence.DescribeTaskListRequest request) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException;
}
public interface AsyncIface {
public void RegisterDomain(com.uber.cadence.RegisterDomainRequest registerRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void DescribeDomain(com.uber.cadence.DescribeDomainRequest describeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void ListDomains(com.uber.cadence.ListDomainsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void UpdateDomain(com.uber.cadence.UpdateDomainRequest updateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void DeprecateDomain(com.uber.cadence.DeprecateDomainRequest deprecateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void StartWorkflowExecution(com.uber.cadence.StartWorkflowExecutionRequest startRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void GetWorkflowExecutionHistory(com.uber.cadence.GetWorkflowExecutionHistoryRequest getRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void PollForDecisionTask(com.uber.cadence.PollForDecisionTaskRequest pollRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void RespondDecisionTaskCompleted(com.uber.cadence.RespondDecisionTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void RespondDecisionTaskFailed(com.uber.cadence.RespondDecisionTaskFailedRequest failedRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void PollForActivityTask(com.uber.cadence.PollForActivityTaskRequest pollRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void RecordActivityTaskHeartbeat(com.uber.cadence.RecordActivityTaskHeartbeatRequest heartbeatRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void RecordActivityTaskHeartbeatByID(com.uber.cadence.RecordActivityTaskHeartbeatByIDRequest heartbeatRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void RespondActivityTaskCompleted(com.uber.cadence.RespondActivityTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void RespondActivityTaskCompletedByID(com.uber.cadence.RespondActivityTaskCompletedByIDRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void RespondActivityTaskFailed(com.uber.cadence.RespondActivityTaskFailedRequest failRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void RespondActivityTaskFailedByID(com.uber.cadence.RespondActivityTaskFailedByIDRequest failRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void RespondActivityTaskCanceled(com.uber.cadence.RespondActivityTaskCanceledRequest canceledRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void RespondActivityTaskCanceledByID(com.uber.cadence.RespondActivityTaskCanceledByIDRequest canceledRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void RequestCancelWorkflowExecution(com.uber.cadence.RequestCancelWorkflowExecutionRequest cancelRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void SignalWorkflowExecution(com.uber.cadence.SignalWorkflowExecutionRequest signalRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void SignalWithStartWorkflowExecution(com.uber.cadence.SignalWithStartWorkflowExecutionRequest signalWithStartRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void TerminateWorkflowExecution(com.uber.cadence.TerminateWorkflowExecutionRequest terminateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void ListOpenWorkflowExecutions(com.uber.cadence.ListOpenWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void ListClosedWorkflowExecutions(com.uber.cadence.ListClosedWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void RespondQueryTaskCompleted(com.uber.cadence.RespondQueryTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void ResetStickyTaskList(com.uber.cadence.ResetStickyTaskListRequest resetRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void QueryWorkflow(com.uber.cadence.QueryWorkflowRequest queryRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void DescribeWorkflowExecution(com.uber.cadence.DescribeWorkflowExecutionRequest describeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void DescribeTaskList(com.uber.cadence.DescribeTaskListRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
}
public static class Client extends org.apache.thrift.TServiceClient implements Iface {
public static class Factory implements org.apache.thrift.TServiceClientFactory {
public Factory() {}
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
return new Client(prot);
}
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
return new Client(iprot, oprot);
}
}
public Client(org.apache.thrift.protocol.TProtocol prot)
{
super(prot, prot);
}
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
super(iprot, oprot);
}
public void RegisterDomain(com.uber.cadence.RegisterDomainRequest registerRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.DomainAlreadyExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
send_RegisterDomain(registerRequest);
recv_RegisterDomain();
}
public void send_RegisterDomain(com.uber.cadence.RegisterDomainRequest registerRequest) throws org.apache.thrift.TException
{
RegisterDomain_args args = new RegisterDomain_args();
args.setRegisterRequest(registerRequest);
sendBase("RegisterDomain", args);
}
public void recv_RegisterDomain() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.DomainAlreadyExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
RegisterDomain_result result = new RegisterDomain_result();
receiveBase(result, "RegisterDomain");
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.domainExistsError != null) {
throw result.domainExistsError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
return;
}
public com.uber.cadence.DescribeDomainResponse DescribeDomain(com.uber.cadence.DescribeDomainRequest describeRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
send_DescribeDomain(describeRequest);
return recv_DescribeDomain();
}
public void send_DescribeDomain(com.uber.cadence.DescribeDomainRequest describeRequest) throws org.apache.thrift.TException
{
DescribeDomain_args args = new DescribeDomain_args();
args.setDescribeRequest(describeRequest);
sendBase("DescribeDomain", args);
}
public com.uber.cadence.DescribeDomainResponse recv_DescribeDomain() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
DescribeDomain_result result = new DescribeDomain_result();
receiveBase(result, "DescribeDomain");
if (result.isSetSuccess()) {
return result.success;
}
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "DescribeDomain failed: unknown result");
}
public com.uber.cadence.ListDomainsResponse ListDomains(com.uber.cadence.ListDomainsRequest listRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
send_ListDomains(listRequest);
return recv_ListDomains();
}
public void send_ListDomains(com.uber.cadence.ListDomainsRequest listRequest) throws org.apache.thrift.TException
{
ListDomains_args args = new ListDomains_args();
args.setListRequest(listRequest);
sendBase("ListDomains", args);
}
public com.uber.cadence.ListDomainsResponse recv_ListDomains() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
ListDomains_result result = new ListDomains_result();
receiveBase(result, "ListDomains");
if (result.isSetSuccess()) {
return result.success;
}
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "ListDomains failed: unknown result");
}
public com.uber.cadence.UpdateDomainResponse UpdateDomain(com.uber.cadence.UpdateDomainRequest updateRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException
{
send_UpdateDomain(updateRequest);
return recv_UpdateDomain();
}
public void send_UpdateDomain(com.uber.cadence.UpdateDomainRequest updateRequest) throws org.apache.thrift.TException
{
UpdateDomain_args args = new UpdateDomain_args();
args.setUpdateRequest(updateRequest);
sendBase("UpdateDomain", args);
}
public com.uber.cadence.UpdateDomainResponse recv_UpdateDomain() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException
{
UpdateDomain_result result = new UpdateDomain_result();
receiveBase(result, "UpdateDomain");
if (result.isSetSuccess()) {
return result.success;
}
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "UpdateDomain failed: unknown result");
}
public void DeprecateDomain(com.uber.cadence.DeprecateDomainRequest deprecateRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException
{
send_DeprecateDomain(deprecateRequest);
recv_DeprecateDomain();
}
public void send_DeprecateDomain(com.uber.cadence.DeprecateDomainRequest deprecateRequest) throws org.apache.thrift.TException
{
DeprecateDomain_args args = new DeprecateDomain_args();
args.setDeprecateRequest(deprecateRequest);
sendBase("DeprecateDomain", args);
}
public void recv_DeprecateDomain() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException
{
DeprecateDomain_result result = new DeprecateDomain_result();
receiveBase(result, "DeprecateDomain");
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
return;
}
public com.uber.cadence.StartWorkflowExecutionResponse StartWorkflowExecution(com.uber.cadence.StartWorkflowExecutionRequest startRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.WorkflowExecutionAlreadyStartedError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.EntityNotExistsError, org.apache.thrift.TException
{
send_StartWorkflowExecution(startRequest);
return recv_StartWorkflowExecution();
}
public void send_StartWorkflowExecution(com.uber.cadence.StartWorkflowExecutionRequest startRequest) throws org.apache.thrift.TException
{
StartWorkflowExecution_args args = new StartWorkflowExecution_args();
args.setStartRequest(startRequest);
sendBase("StartWorkflowExecution", args);
}
public com.uber.cadence.StartWorkflowExecutionResponse recv_StartWorkflowExecution() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.WorkflowExecutionAlreadyStartedError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.EntityNotExistsError, org.apache.thrift.TException
{
StartWorkflowExecution_result result = new StartWorkflowExecution_result();
receiveBase(result, "StartWorkflowExecution");
if (result.isSetSuccess()) {
return result.success;
}
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.sessionAlreadyExistError != null) {
throw result.sessionAlreadyExistError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "StartWorkflowExecution failed: unknown result");
}
public com.uber.cadence.GetWorkflowExecutionHistoryResponse GetWorkflowExecutionHistory(com.uber.cadence.GetWorkflowExecutionHistoryRequest getRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
send_GetWorkflowExecutionHistory(getRequest);
return recv_GetWorkflowExecutionHistory();
}
public void send_GetWorkflowExecutionHistory(com.uber.cadence.GetWorkflowExecutionHistoryRequest getRequest) throws org.apache.thrift.TException
{
GetWorkflowExecutionHistory_args args = new GetWorkflowExecutionHistory_args();
args.setGetRequest(getRequest);
sendBase("GetWorkflowExecutionHistory", args);
}
public com.uber.cadence.GetWorkflowExecutionHistoryResponse recv_GetWorkflowExecutionHistory() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
GetWorkflowExecutionHistory_result result = new GetWorkflowExecutionHistory_result();
receiveBase(result, "GetWorkflowExecutionHistory");
if (result.isSetSuccess()) {
return result.success;
}
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetWorkflowExecutionHistory failed: unknown result");
}
public com.uber.cadence.PollForDecisionTaskResponse PollForDecisionTask(com.uber.cadence.PollForDecisionTaskRequest pollRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.ServiceBusyError, com.uber.cadence.LimitExceededError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException
{
send_PollForDecisionTask(pollRequest);
return recv_PollForDecisionTask();
}
public void send_PollForDecisionTask(com.uber.cadence.PollForDecisionTaskRequest pollRequest) throws org.apache.thrift.TException
{
PollForDecisionTask_args args = new PollForDecisionTask_args();
args.setPollRequest(pollRequest);
sendBase("PollForDecisionTask", args);
}
public com.uber.cadence.PollForDecisionTaskResponse recv_PollForDecisionTask() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.ServiceBusyError, com.uber.cadence.LimitExceededError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException
{
PollForDecisionTask_result result = new PollForDecisionTask_result();
receiveBase(result, "PollForDecisionTask");
if (result.isSetSuccess()) {
return result.success;
}
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "PollForDecisionTask failed: unknown result");
}
public com.uber.cadence.RespondDecisionTaskCompletedResponse RespondDecisionTaskCompleted(com.uber.cadence.RespondDecisionTaskCompletedRequest completeRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
send_RespondDecisionTaskCompleted(completeRequest);
return recv_RespondDecisionTaskCompleted();
}
public void send_RespondDecisionTaskCompleted(com.uber.cadence.RespondDecisionTaskCompletedRequest completeRequest) throws org.apache.thrift.TException
{
RespondDecisionTaskCompleted_args args = new RespondDecisionTaskCompleted_args();
args.setCompleteRequest(completeRequest);
sendBase("RespondDecisionTaskCompleted", args);
}
public com.uber.cadence.RespondDecisionTaskCompletedResponse recv_RespondDecisionTaskCompleted() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
RespondDecisionTaskCompleted_result result = new RespondDecisionTaskCompleted_result();
receiveBase(result, "RespondDecisionTaskCompleted");
if (result.isSetSuccess()) {
return result.success;
}
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "RespondDecisionTaskCompleted failed: unknown result");
}
public void RespondDecisionTaskFailed(com.uber.cadence.RespondDecisionTaskFailedRequest failedRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
send_RespondDecisionTaskFailed(failedRequest);
recv_RespondDecisionTaskFailed();
}
public void send_RespondDecisionTaskFailed(com.uber.cadence.RespondDecisionTaskFailedRequest failedRequest) throws org.apache.thrift.TException
{
RespondDecisionTaskFailed_args args = new RespondDecisionTaskFailed_args();
args.setFailedRequest(failedRequest);
sendBase("RespondDecisionTaskFailed", args);
}
public void recv_RespondDecisionTaskFailed() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
RespondDecisionTaskFailed_result result = new RespondDecisionTaskFailed_result();
receiveBase(result, "RespondDecisionTaskFailed");
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
return;
}
public com.uber.cadence.PollForActivityTaskResponse PollForActivityTask(com.uber.cadence.PollForActivityTaskRequest pollRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.ServiceBusyError, com.uber.cadence.LimitExceededError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException
{
send_PollForActivityTask(pollRequest);
return recv_PollForActivityTask();
}
public void send_PollForActivityTask(com.uber.cadence.PollForActivityTaskRequest pollRequest) throws org.apache.thrift.TException
{
PollForActivityTask_args args = new PollForActivityTask_args();
args.setPollRequest(pollRequest);
sendBase("PollForActivityTask", args);
}
public com.uber.cadence.PollForActivityTaskResponse recv_PollForActivityTask() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.ServiceBusyError, com.uber.cadence.LimitExceededError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException
{
PollForActivityTask_result result = new PollForActivityTask_result();
receiveBase(result, "PollForActivityTask");
if (result.isSetSuccess()) {
return result.success;
}
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "PollForActivityTask failed: unknown result");
}
public com.uber.cadence.RecordActivityTaskHeartbeatResponse RecordActivityTaskHeartbeat(com.uber.cadence.RecordActivityTaskHeartbeatRequest heartbeatRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
send_RecordActivityTaskHeartbeat(heartbeatRequest);
return recv_RecordActivityTaskHeartbeat();
}
public void send_RecordActivityTaskHeartbeat(com.uber.cadence.RecordActivityTaskHeartbeatRequest heartbeatRequest) throws org.apache.thrift.TException
{
RecordActivityTaskHeartbeat_args args = new RecordActivityTaskHeartbeat_args();
args.setHeartbeatRequest(heartbeatRequest);
sendBase("RecordActivityTaskHeartbeat", args);
}
public com.uber.cadence.RecordActivityTaskHeartbeatResponse recv_RecordActivityTaskHeartbeat() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
RecordActivityTaskHeartbeat_result result = new RecordActivityTaskHeartbeat_result();
receiveBase(result, "RecordActivityTaskHeartbeat");
if (result.isSetSuccess()) {
return result.success;
}
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "RecordActivityTaskHeartbeat failed: unknown result");
}
public com.uber.cadence.RecordActivityTaskHeartbeatResponse RecordActivityTaskHeartbeatByID(com.uber.cadence.RecordActivityTaskHeartbeatByIDRequest heartbeatRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
send_RecordActivityTaskHeartbeatByID(heartbeatRequest);
return recv_RecordActivityTaskHeartbeatByID();
}
public void send_RecordActivityTaskHeartbeatByID(com.uber.cadence.RecordActivityTaskHeartbeatByIDRequest heartbeatRequest) throws org.apache.thrift.TException
{
RecordActivityTaskHeartbeatByID_args args = new RecordActivityTaskHeartbeatByID_args();
args.setHeartbeatRequest(heartbeatRequest);
sendBase("RecordActivityTaskHeartbeatByID", args);
}
public com.uber.cadence.RecordActivityTaskHeartbeatResponse recv_RecordActivityTaskHeartbeatByID() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
RecordActivityTaskHeartbeatByID_result result = new RecordActivityTaskHeartbeatByID_result();
receiveBase(result, "RecordActivityTaskHeartbeatByID");
if (result.isSetSuccess()) {
return result.success;
}
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "RecordActivityTaskHeartbeatByID failed: unknown result");
}
public void RespondActivityTaskCompleted(com.uber.cadence.RespondActivityTaskCompletedRequest completeRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
send_RespondActivityTaskCompleted(completeRequest);
recv_RespondActivityTaskCompleted();
}
public void send_RespondActivityTaskCompleted(com.uber.cadence.RespondActivityTaskCompletedRequest completeRequest) throws org.apache.thrift.TException
{
RespondActivityTaskCompleted_args args = new RespondActivityTaskCompleted_args();
args.setCompleteRequest(completeRequest);
sendBase("RespondActivityTaskCompleted", args);
}
public void recv_RespondActivityTaskCompleted() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
RespondActivityTaskCompleted_result result = new RespondActivityTaskCompleted_result();
receiveBase(result, "RespondActivityTaskCompleted");
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
return;
}
public void RespondActivityTaskCompletedByID(com.uber.cadence.RespondActivityTaskCompletedByIDRequest completeRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
send_RespondActivityTaskCompletedByID(completeRequest);
recv_RespondActivityTaskCompletedByID();
}
public void send_RespondActivityTaskCompletedByID(com.uber.cadence.RespondActivityTaskCompletedByIDRequest completeRequest) throws org.apache.thrift.TException
{
RespondActivityTaskCompletedByID_args args = new RespondActivityTaskCompletedByID_args();
args.setCompleteRequest(completeRequest);
sendBase("RespondActivityTaskCompletedByID", args);
}
public void recv_RespondActivityTaskCompletedByID() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
RespondActivityTaskCompletedByID_result result = new RespondActivityTaskCompletedByID_result();
receiveBase(result, "RespondActivityTaskCompletedByID");
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
return;
}
public void RespondActivityTaskFailed(com.uber.cadence.RespondActivityTaskFailedRequest failRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
send_RespondActivityTaskFailed(failRequest);
recv_RespondActivityTaskFailed();
}
public void send_RespondActivityTaskFailed(com.uber.cadence.RespondActivityTaskFailedRequest failRequest) throws org.apache.thrift.TException
{
RespondActivityTaskFailed_args args = new RespondActivityTaskFailed_args();
args.setFailRequest(failRequest);
sendBase("RespondActivityTaskFailed", args);
}
public void recv_RespondActivityTaskFailed() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
RespondActivityTaskFailed_result result = new RespondActivityTaskFailed_result();
receiveBase(result, "RespondActivityTaskFailed");
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
return;
}
public void RespondActivityTaskFailedByID(com.uber.cadence.RespondActivityTaskFailedByIDRequest failRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
send_RespondActivityTaskFailedByID(failRequest);
recv_RespondActivityTaskFailedByID();
}
public void send_RespondActivityTaskFailedByID(com.uber.cadence.RespondActivityTaskFailedByIDRequest failRequest) throws org.apache.thrift.TException
{
RespondActivityTaskFailedByID_args args = new RespondActivityTaskFailedByID_args();
args.setFailRequest(failRequest);
sendBase("RespondActivityTaskFailedByID", args);
}
public void recv_RespondActivityTaskFailedByID() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
RespondActivityTaskFailedByID_result result = new RespondActivityTaskFailedByID_result();
receiveBase(result, "RespondActivityTaskFailedByID");
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
return;
}
public void RespondActivityTaskCanceled(com.uber.cadence.RespondActivityTaskCanceledRequest canceledRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
send_RespondActivityTaskCanceled(canceledRequest);
recv_RespondActivityTaskCanceled();
}
public void send_RespondActivityTaskCanceled(com.uber.cadence.RespondActivityTaskCanceledRequest canceledRequest) throws org.apache.thrift.TException
{
RespondActivityTaskCanceled_args args = new RespondActivityTaskCanceled_args();
args.setCanceledRequest(canceledRequest);
sendBase("RespondActivityTaskCanceled", args);
}
public void recv_RespondActivityTaskCanceled() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
RespondActivityTaskCanceled_result result = new RespondActivityTaskCanceled_result();
receiveBase(result, "RespondActivityTaskCanceled");
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
return;
}
public void RespondActivityTaskCanceledByID(com.uber.cadence.RespondActivityTaskCanceledByIDRequest canceledRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
send_RespondActivityTaskCanceledByID(canceledRequest);
recv_RespondActivityTaskCanceledByID();
}
public void send_RespondActivityTaskCanceledByID(com.uber.cadence.RespondActivityTaskCanceledByIDRequest canceledRequest) throws org.apache.thrift.TException
{
RespondActivityTaskCanceledByID_args args = new RespondActivityTaskCanceledByID_args();
args.setCanceledRequest(canceledRequest);
sendBase("RespondActivityTaskCanceledByID", args);
}
public void recv_RespondActivityTaskCanceledByID() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
RespondActivityTaskCanceledByID_result result = new RespondActivityTaskCanceledByID_result();
receiveBase(result, "RespondActivityTaskCanceledByID");
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
return;
}
public void RequestCancelWorkflowExecution(com.uber.cadence.RequestCancelWorkflowExecutionRequest cancelRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.CancellationAlreadyRequestedError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, org.apache.thrift.TException
{
send_RequestCancelWorkflowExecution(cancelRequest);
recv_RequestCancelWorkflowExecution();
}
public void send_RequestCancelWorkflowExecution(com.uber.cadence.RequestCancelWorkflowExecutionRequest cancelRequest) throws org.apache.thrift.TException
{
RequestCancelWorkflowExecution_args args = new RequestCancelWorkflowExecution_args();
args.setCancelRequest(cancelRequest);
sendBase("RequestCancelWorkflowExecution", args);
}
public void recv_RequestCancelWorkflowExecution() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.CancellationAlreadyRequestedError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, org.apache.thrift.TException
{
RequestCancelWorkflowExecution_result result = new RequestCancelWorkflowExecution_result();
receiveBase(result, "RequestCancelWorkflowExecution");
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.cancellationAlreadyRequestedError != null) {
throw result.cancellationAlreadyRequestedError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
return;
}
public void SignalWorkflowExecution(com.uber.cadence.SignalWorkflowExecutionRequest signalRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, org.apache.thrift.TException
{
send_SignalWorkflowExecution(signalRequest);
recv_SignalWorkflowExecution();
}
public void send_SignalWorkflowExecution(com.uber.cadence.SignalWorkflowExecutionRequest signalRequest) throws org.apache.thrift.TException
{
SignalWorkflowExecution_args args = new SignalWorkflowExecution_args();
args.setSignalRequest(signalRequest);
sendBase("SignalWorkflowExecution", args);
}
public void recv_SignalWorkflowExecution() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, org.apache.thrift.TException
{
SignalWorkflowExecution_result result = new SignalWorkflowExecution_result();
receiveBase(result, "SignalWorkflowExecution");
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
return;
}
public com.uber.cadence.StartWorkflowExecutionResponse SignalWithStartWorkflowExecution(com.uber.cadence.SignalWithStartWorkflowExecutionRequest signalWithStartRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.WorkflowExecutionAlreadyStartedError, org.apache.thrift.TException
{
send_SignalWithStartWorkflowExecution(signalWithStartRequest);
return recv_SignalWithStartWorkflowExecution();
}
public void send_SignalWithStartWorkflowExecution(com.uber.cadence.SignalWithStartWorkflowExecutionRequest signalWithStartRequest) throws org.apache.thrift.TException
{
SignalWithStartWorkflowExecution_args args = new SignalWithStartWorkflowExecution_args();
args.setSignalWithStartRequest(signalWithStartRequest);
sendBase("SignalWithStartWorkflowExecution", args);
}
public com.uber.cadence.StartWorkflowExecutionResponse recv_SignalWithStartWorkflowExecution() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.WorkflowExecutionAlreadyStartedError, org.apache.thrift.TException
{
SignalWithStartWorkflowExecution_result result = new SignalWithStartWorkflowExecution_result();
receiveBase(result, "SignalWithStartWorkflowExecution");
if (result.isSetSuccess()) {
return result.success;
}
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
if (result.workflowAlreadyStartedError != null) {
throw result.workflowAlreadyStartedError;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "SignalWithStartWorkflowExecution failed: unknown result");
}
public void TerminateWorkflowExecution(com.uber.cadence.TerminateWorkflowExecutionRequest terminateRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, org.apache.thrift.TException
{
send_TerminateWorkflowExecution(terminateRequest);
recv_TerminateWorkflowExecution();
}
public void send_TerminateWorkflowExecution(com.uber.cadence.TerminateWorkflowExecutionRequest terminateRequest) throws org.apache.thrift.TException
{
TerminateWorkflowExecution_args args = new TerminateWorkflowExecution_args();
args.setTerminateRequest(terminateRequest);
sendBase("TerminateWorkflowExecution", args);
}
public void recv_TerminateWorkflowExecution() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, org.apache.thrift.TException
{
TerminateWorkflowExecution_result result = new TerminateWorkflowExecution_result();
receiveBase(result, "TerminateWorkflowExecution");
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
return;
}
public com.uber.cadence.ListOpenWorkflowExecutionsResponse ListOpenWorkflowExecutions(com.uber.cadence.ListOpenWorkflowExecutionsRequest listRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.LimitExceededError, org.apache.thrift.TException
{
send_ListOpenWorkflowExecutions(listRequest);
return recv_ListOpenWorkflowExecutions();
}
public void send_ListOpenWorkflowExecutions(com.uber.cadence.ListOpenWorkflowExecutionsRequest listRequest) throws org.apache.thrift.TException
{
ListOpenWorkflowExecutions_args args = new ListOpenWorkflowExecutions_args();
args.setListRequest(listRequest);
sendBase("ListOpenWorkflowExecutions", args);
}
public com.uber.cadence.ListOpenWorkflowExecutionsResponse recv_ListOpenWorkflowExecutions() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.LimitExceededError, org.apache.thrift.TException
{
ListOpenWorkflowExecutions_result result = new ListOpenWorkflowExecutions_result();
receiveBase(result, "ListOpenWorkflowExecutions");
if (result.isSetSuccess()) {
return result.success;
}
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "ListOpenWorkflowExecutions failed: unknown result");
}
public com.uber.cadence.ListClosedWorkflowExecutionsResponse ListClosedWorkflowExecutions(com.uber.cadence.ListClosedWorkflowExecutionsRequest listRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
send_ListClosedWorkflowExecutions(listRequest);
return recv_ListClosedWorkflowExecutions();
}
public void send_ListClosedWorkflowExecutions(com.uber.cadence.ListClosedWorkflowExecutionsRequest listRequest) throws org.apache.thrift.TException
{
ListClosedWorkflowExecutions_args args = new ListClosedWorkflowExecutions_args();
args.setListRequest(listRequest);
sendBase("ListClosedWorkflowExecutions", args);
}
public com.uber.cadence.ListClosedWorkflowExecutionsResponse recv_ListClosedWorkflowExecutions() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
ListClosedWorkflowExecutions_result result = new ListClosedWorkflowExecutions_result();
receiveBase(result, "ListClosedWorkflowExecutions");
if (result.isSetSuccess()) {
return result.success;
}
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "ListClosedWorkflowExecutions failed: unknown result");
}
public void RespondQueryTaskCompleted(com.uber.cadence.RespondQueryTaskCompletedRequest completeRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException
{
send_RespondQueryTaskCompleted(completeRequest);
recv_RespondQueryTaskCompleted();
}
public void send_RespondQueryTaskCompleted(com.uber.cadence.RespondQueryTaskCompletedRequest completeRequest) throws org.apache.thrift.TException
{
RespondQueryTaskCompleted_args args = new RespondQueryTaskCompleted_args();
args.setCompleteRequest(completeRequest);
sendBase("RespondQueryTaskCompleted", args);
}
public void recv_RespondQueryTaskCompleted() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException
{
RespondQueryTaskCompleted_result result = new RespondQueryTaskCompleted_result();
receiveBase(result, "RespondQueryTaskCompleted");
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
return;
}
public com.uber.cadence.ResetStickyTaskListResponse ResetStickyTaskList(com.uber.cadence.ResetStickyTaskListRequest resetRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException
{
send_ResetStickyTaskList(resetRequest);
return recv_ResetStickyTaskList();
}
public void send_ResetStickyTaskList(com.uber.cadence.ResetStickyTaskListRequest resetRequest) throws org.apache.thrift.TException
{
ResetStickyTaskList_args args = new ResetStickyTaskList_args();
args.setResetRequest(resetRequest);
sendBase("ResetStickyTaskList", args);
}
public com.uber.cadence.ResetStickyTaskListResponse recv_ResetStickyTaskList() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException
{
ResetStickyTaskList_result result = new ResetStickyTaskList_result();
receiveBase(result, "ResetStickyTaskList");
if (result.isSetSuccess()) {
return result.success;
}
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
if (result.domainNotActiveError != null) {
throw result.domainNotActiveError;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "ResetStickyTaskList failed: unknown result");
}
public com.uber.cadence.QueryWorkflowResponse QueryWorkflow(com.uber.cadence.QueryWorkflowRequest queryRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.QueryFailedError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
send_QueryWorkflow(queryRequest);
return recv_QueryWorkflow();
}
public void send_QueryWorkflow(com.uber.cadence.QueryWorkflowRequest queryRequest) throws org.apache.thrift.TException
{
QueryWorkflow_args args = new QueryWorkflow_args();
args.setQueryRequest(queryRequest);
sendBase("QueryWorkflow", args);
}
public com.uber.cadence.QueryWorkflowResponse recv_QueryWorkflow() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.QueryFailedError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
QueryWorkflow_result result = new QueryWorkflow_result();
receiveBase(result, "QueryWorkflow");
if (result.isSetSuccess()) {
return result.success;
}
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.queryFailedError != null) {
throw result.queryFailedError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "QueryWorkflow failed: unknown result");
}
public com.uber.cadence.DescribeWorkflowExecutionResponse DescribeWorkflowExecution(com.uber.cadence.DescribeWorkflowExecutionRequest describeRequest) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
send_DescribeWorkflowExecution(describeRequest);
return recv_DescribeWorkflowExecution();
}
public void send_DescribeWorkflowExecution(com.uber.cadence.DescribeWorkflowExecutionRequest describeRequest) throws org.apache.thrift.TException
{
DescribeWorkflowExecution_args args = new DescribeWorkflowExecution_args();
args.setDescribeRequest(describeRequest);
sendBase("DescribeWorkflowExecution", args);
}
public com.uber.cadence.DescribeWorkflowExecutionResponse recv_DescribeWorkflowExecution() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
DescribeWorkflowExecution_result result = new DescribeWorkflowExecution_result();
receiveBase(result, "DescribeWorkflowExecution");
if (result.isSetSuccess()) {
return result.success;
}
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "DescribeWorkflowExecution failed: unknown result");
}
public com.uber.cadence.DescribeTaskListResponse DescribeTaskList(com.uber.cadence.DescribeTaskListRequest request) throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
send_DescribeTaskList(request);
return recv_DescribeTaskList();
}
public void send_DescribeTaskList(com.uber.cadence.DescribeTaskListRequest request) throws org.apache.thrift.TException
{
DescribeTaskList_args args = new DescribeTaskList_args();
args.setRequest(request);
sendBase("DescribeTaskList", args);
}
public com.uber.cadence.DescribeTaskListResponse recv_DescribeTaskList() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException
{
DescribeTaskList_result result = new DescribeTaskList_result();
receiveBase(result, "DescribeTaskList");
if (result.isSetSuccess()) {
return result.success;
}
if (result.badRequestError != null) {
throw result.badRequestError;
}
if (result.internalServiceError != null) {
throw result.internalServiceError;
}
if (result.entityNotExistError != null) {
throw result.entityNotExistError;
}
if (result.limitExceededError != null) {
throw result.limitExceededError;
}
if (result.serviceBusyError != null) {
throw result.serviceBusyError;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "DescribeTaskList failed: unknown result");
}
}
public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory {
private org.apache.thrift.async.TAsyncClientManager clientManager;
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
this.clientManager = clientManager;
this.protocolFactory = protocolFactory;
}
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
return new AsyncClient(protocolFactory, clientManager, transport);
}
}
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
super(protocolFactory, clientManager, transport);
}
public void RegisterDomain(com.uber.cadence.RegisterDomainRequest registerRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
RegisterDomain_call method_call = new RegisterDomain_call(registerRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class RegisterDomain_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.RegisterDomainRequest registerRequest;
public RegisterDomain_call(com.uber.cadence.RegisterDomainRequest registerRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.registerRequest = registerRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("RegisterDomain", org.apache.thrift.protocol.TMessageType.CALL, 0));
RegisterDomain_args args = new RegisterDomain_args();
args.setRegisterRequest(registerRequest);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.DomainAlreadyExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_RegisterDomain();
}
}
public void DescribeDomain(com.uber.cadence.DescribeDomainRequest describeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
DescribeDomain_call method_call = new DescribeDomain_call(describeRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class DescribeDomain_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.DescribeDomainRequest describeRequest;
public DescribeDomain_call(com.uber.cadence.DescribeDomainRequest describeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.describeRequest = describeRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("DescribeDomain", org.apache.thrift.protocol.TMessageType.CALL, 0));
DescribeDomain_args args = new DescribeDomain_args();
args.setDescribeRequest(describeRequest);
args.write(prot);
prot.writeMessageEnd();
}
public com.uber.cadence.DescribeDomainResponse getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_DescribeDomain();
}
}
public void ListDomains(com.uber.cadence.ListDomainsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
ListDomains_call method_call = new ListDomains_call(listRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class ListDomains_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.ListDomainsRequest listRequest;
public ListDomains_call(com.uber.cadence.ListDomainsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.listRequest = listRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("ListDomains", org.apache.thrift.protocol.TMessageType.CALL, 0));
ListDomains_args args = new ListDomains_args();
args.setListRequest(listRequest);
args.write(prot);
prot.writeMessageEnd();
}
public com.uber.cadence.ListDomainsResponse getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_ListDomains();
}
}
public void UpdateDomain(com.uber.cadence.UpdateDomainRequest updateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
UpdateDomain_call method_call = new UpdateDomain_call(updateRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class UpdateDomain_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.UpdateDomainRequest updateRequest;
public UpdateDomain_call(com.uber.cadence.UpdateDomainRequest updateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.updateRequest = updateRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("UpdateDomain", org.apache.thrift.protocol.TMessageType.CALL, 0));
UpdateDomain_args args = new UpdateDomain_args();
args.setUpdateRequest(updateRequest);
args.write(prot);
prot.writeMessageEnd();
}
public com.uber.cadence.UpdateDomainResponse getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_UpdateDomain();
}
}
public void DeprecateDomain(com.uber.cadence.DeprecateDomainRequest deprecateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
DeprecateDomain_call method_call = new DeprecateDomain_call(deprecateRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class DeprecateDomain_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.DeprecateDomainRequest deprecateRequest;
public DeprecateDomain_call(com.uber.cadence.DeprecateDomainRequest deprecateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.deprecateRequest = deprecateRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("DeprecateDomain", org.apache.thrift.protocol.TMessageType.CALL, 0));
DeprecateDomain_args args = new DeprecateDomain_args();
args.setDeprecateRequest(deprecateRequest);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_DeprecateDomain();
}
}
public void StartWorkflowExecution(com.uber.cadence.StartWorkflowExecutionRequest startRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
StartWorkflowExecution_call method_call = new StartWorkflowExecution_call(startRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class StartWorkflowExecution_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.StartWorkflowExecutionRequest startRequest;
public StartWorkflowExecution_call(com.uber.cadence.StartWorkflowExecutionRequest startRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.startRequest = startRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("StartWorkflowExecution", org.apache.thrift.protocol.TMessageType.CALL, 0));
StartWorkflowExecution_args args = new StartWorkflowExecution_args();
args.setStartRequest(startRequest);
args.write(prot);
prot.writeMessageEnd();
}
public com.uber.cadence.StartWorkflowExecutionResponse getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.WorkflowExecutionAlreadyStartedError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.EntityNotExistsError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_StartWorkflowExecution();
}
}
public void GetWorkflowExecutionHistory(com.uber.cadence.GetWorkflowExecutionHistoryRequest getRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetWorkflowExecutionHistory_call method_call = new GetWorkflowExecutionHistory_call(getRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetWorkflowExecutionHistory_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.GetWorkflowExecutionHistoryRequest getRequest;
public GetWorkflowExecutionHistory_call(com.uber.cadence.GetWorkflowExecutionHistoryRequest getRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.getRequest = getRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetWorkflowExecutionHistory", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetWorkflowExecutionHistory_args args = new GetWorkflowExecutionHistory_args();
args.setGetRequest(getRequest);
args.write(prot);
prot.writeMessageEnd();
}
public com.uber.cadence.GetWorkflowExecutionHistoryResponse getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetWorkflowExecutionHistory();
}
}
public void PollForDecisionTask(com.uber.cadence.PollForDecisionTaskRequest pollRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
PollForDecisionTask_call method_call = new PollForDecisionTask_call(pollRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class PollForDecisionTask_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.PollForDecisionTaskRequest pollRequest;
public PollForDecisionTask_call(com.uber.cadence.PollForDecisionTaskRequest pollRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.pollRequest = pollRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("PollForDecisionTask", org.apache.thrift.protocol.TMessageType.CALL, 0));
PollForDecisionTask_args args = new PollForDecisionTask_args();
args.setPollRequest(pollRequest);
args.write(prot);
prot.writeMessageEnd();
}
public com.uber.cadence.PollForDecisionTaskResponse getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.ServiceBusyError, com.uber.cadence.LimitExceededError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_PollForDecisionTask();
}
}
public void RespondDecisionTaskCompleted(com.uber.cadence.RespondDecisionTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
RespondDecisionTaskCompleted_call method_call = new RespondDecisionTaskCompleted_call(completeRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class RespondDecisionTaskCompleted_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.RespondDecisionTaskCompletedRequest completeRequest;
public RespondDecisionTaskCompleted_call(com.uber.cadence.RespondDecisionTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.completeRequest = completeRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("RespondDecisionTaskCompleted", org.apache.thrift.protocol.TMessageType.CALL, 0));
RespondDecisionTaskCompleted_args args = new RespondDecisionTaskCompleted_args();
args.setCompleteRequest(completeRequest);
args.write(prot);
prot.writeMessageEnd();
}
public com.uber.cadence.RespondDecisionTaskCompletedResponse getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_RespondDecisionTaskCompleted();
}
}
public void RespondDecisionTaskFailed(com.uber.cadence.RespondDecisionTaskFailedRequest failedRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
RespondDecisionTaskFailed_call method_call = new RespondDecisionTaskFailed_call(failedRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class RespondDecisionTaskFailed_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.RespondDecisionTaskFailedRequest failedRequest;
public RespondDecisionTaskFailed_call(com.uber.cadence.RespondDecisionTaskFailedRequest failedRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.failedRequest = failedRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("RespondDecisionTaskFailed", org.apache.thrift.protocol.TMessageType.CALL, 0));
RespondDecisionTaskFailed_args args = new RespondDecisionTaskFailed_args();
args.setFailedRequest(failedRequest);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_RespondDecisionTaskFailed();
}
}
public void PollForActivityTask(com.uber.cadence.PollForActivityTaskRequest pollRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
PollForActivityTask_call method_call = new PollForActivityTask_call(pollRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class PollForActivityTask_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.PollForActivityTaskRequest pollRequest;
public PollForActivityTask_call(com.uber.cadence.PollForActivityTaskRequest pollRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.pollRequest = pollRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("PollForActivityTask", org.apache.thrift.protocol.TMessageType.CALL, 0));
PollForActivityTask_args args = new PollForActivityTask_args();
args.setPollRequest(pollRequest);
args.write(prot);
prot.writeMessageEnd();
}
public com.uber.cadence.PollForActivityTaskResponse getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.ServiceBusyError, com.uber.cadence.LimitExceededError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_PollForActivityTask();
}
}
public void RecordActivityTaskHeartbeat(com.uber.cadence.RecordActivityTaskHeartbeatRequest heartbeatRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
RecordActivityTaskHeartbeat_call method_call = new RecordActivityTaskHeartbeat_call(heartbeatRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class RecordActivityTaskHeartbeat_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.RecordActivityTaskHeartbeatRequest heartbeatRequest;
public RecordActivityTaskHeartbeat_call(com.uber.cadence.RecordActivityTaskHeartbeatRequest heartbeatRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.heartbeatRequest = heartbeatRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("RecordActivityTaskHeartbeat", org.apache.thrift.protocol.TMessageType.CALL, 0));
RecordActivityTaskHeartbeat_args args = new RecordActivityTaskHeartbeat_args();
args.setHeartbeatRequest(heartbeatRequest);
args.write(prot);
prot.writeMessageEnd();
}
public com.uber.cadence.RecordActivityTaskHeartbeatResponse getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_RecordActivityTaskHeartbeat();
}
}
public void RecordActivityTaskHeartbeatByID(com.uber.cadence.RecordActivityTaskHeartbeatByIDRequest heartbeatRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
RecordActivityTaskHeartbeatByID_call method_call = new RecordActivityTaskHeartbeatByID_call(heartbeatRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class RecordActivityTaskHeartbeatByID_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.RecordActivityTaskHeartbeatByIDRequest heartbeatRequest;
public RecordActivityTaskHeartbeatByID_call(com.uber.cadence.RecordActivityTaskHeartbeatByIDRequest heartbeatRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.heartbeatRequest = heartbeatRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("RecordActivityTaskHeartbeatByID", org.apache.thrift.protocol.TMessageType.CALL, 0));
RecordActivityTaskHeartbeatByID_args args = new RecordActivityTaskHeartbeatByID_args();
args.setHeartbeatRequest(heartbeatRequest);
args.write(prot);
prot.writeMessageEnd();
}
public com.uber.cadence.RecordActivityTaskHeartbeatResponse getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_RecordActivityTaskHeartbeatByID();
}
}
public void RespondActivityTaskCompleted(com.uber.cadence.RespondActivityTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
RespondActivityTaskCompleted_call method_call = new RespondActivityTaskCompleted_call(completeRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class RespondActivityTaskCompleted_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.RespondActivityTaskCompletedRequest completeRequest;
public RespondActivityTaskCompleted_call(com.uber.cadence.RespondActivityTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.completeRequest = completeRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("RespondActivityTaskCompleted", org.apache.thrift.protocol.TMessageType.CALL, 0));
RespondActivityTaskCompleted_args args = new RespondActivityTaskCompleted_args();
args.setCompleteRequest(completeRequest);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_RespondActivityTaskCompleted();
}
}
public void RespondActivityTaskCompletedByID(com.uber.cadence.RespondActivityTaskCompletedByIDRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
RespondActivityTaskCompletedByID_call method_call = new RespondActivityTaskCompletedByID_call(completeRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class RespondActivityTaskCompletedByID_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.RespondActivityTaskCompletedByIDRequest completeRequest;
public RespondActivityTaskCompletedByID_call(com.uber.cadence.RespondActivityTaskCompletedByIDRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.completeRequest = completeRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("RespondActivityTaskCompletedByID", org.apache.thrift.protocol.TMessageType.CALL, 0));
RespondActivityTaskCompletedByID_args args = new RespondActivityTaskCompletedByID_args();
args.setCompleteRequest(completeRequest);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_RespondActivityTaskCompletedByID();
}
}
public void RespondActivityTaskFailed(com.uber.cadence.RespondActivityTaskFailedRequest failRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
RespondActivityTaskFailed_call method_call = new RespondActivityTaskFailed_call(failRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class RespondActivityTaskFailed_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.RespondActivityTaskFailedRequest failRequest;
public RespondActivityTaskFailed_call(com.uber.cadence.RespondActivityTaskFailedRequest failRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.failRequest = failRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("RespondActivityTaskFailed", org.apache.thrift.protocol.TMessageType.CALL, 0));
RespondActivityTaskFailed_args args = new RespondActivityTaskFailed_args();
args.setFailRequest(failRequest);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_RespondActivityTaskFailed();
}
}
public void RespondActivityTaskFailedByID(com.uber.cadence.RespondActivityTaskFailedByIDRequest failRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
RespondActivityTaskFailedByID_call method_call = new RespondActivityTaskFailedByID_call(failRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class RespondActivityTaskFailedByID_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.RespondActivityTaskFailedByIDRequest failRequest;
public RespondActivityTaskFailedByID_call(com.uber.cadence.RespondActivityTaskFailedByIDRequest failRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.failRequest = failRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("RespondActivityTaskFailedByID", org.apache.thrift.protocol.TMessageType.CALL, 0));
RespondActivityTaskFailedByID_args args = new RespondActivityTaskFailedByID_args();
args.setFailRequest(failRequest);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_RespondActivityTaskFailedByID();
}
}
public void RespondActivityTaskCanceled(com.uber.cadence.RespondActivityTaskCanceledRequest canceledRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
RespondActivityTaskCanceled_call method_call = new RespondActivityTaskCanceled_call(canceledRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class RespondActivityTaskCanceled_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.RespondActivityTaskCanceledRequest canceledRequest;
public RespondActivityTaskCanceled_call(com.uber.cadence.RespondActivityTaskCanceledRequest canceledRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.canceledRequest = canceledRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("RespondActivityTaskCanceled", org.apache.thrift.protocol.TMessageType.CALL, 0));
RespondActivityTaskCanceled_args args = new RespondActivityTaskCanceled_args();
args.setCanceledRequest(canceledRequest);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_RespondActivityTaskCanceled();
}
}
public void RespondActivityTaskCanceledByID(com.uber.cadence.RespondActivityTaskCanceledByIDRequest canceledRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
RespondActivityTaskCanceledByID_call method_call = new RespondActivityTaskCanceledByID_call(canceledRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class RespondActivityTaskCanceledByID_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.RespondActivityTaskCanceledByIDRequest canceledRequest;
public RespondActivityTaskCanceledByID_call(com.uber.cadence.RespondActivityTaskCanceledByIDRequest canceledRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.canceledRequest = canceledRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("RespondActivityTaskCanceledByID", org.apache.thrift.protocol.TMessageType.CALL, 0));
RespondActivityTaskCanceledByID_args args = new RespondActivityTaskCanceledByID_args();
args.setCanceledRequest(canceledRequest);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_RespondActivityTaskCanceledByID();
}
}
public void RequestCancelWorkflowExecution(com.uber.cadence.RequestCancelWorkflowExecutionRequest cancelRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
RequestCancelWorkflowExecution_call method_call = new RequestCancelWorkflowExecution_call(cancelRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class RequestCancelWorkflowExecution_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.RequestCancelWorkflowExecutionRequest cancelRequest;
public RequestCancelWorkflowExecution_call(com.uber.cadence.RequestCancelWorkflowExecutionRequest cancelRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.cancelRequest = cancelRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("RequestCancelWorkflowExecution", org.apache.thrift.protocol.TMessageType.CALL, 0));
RequestCancelWorkflowExecution_args args = new RequestCancelWorkflowExecution_args();
args.setCancelRequest(cancelRequest);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.CancellationAlreadyRequestedError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_RequestCancelWorkflowExecution();
}
}
public void SignalWorkflowExecution(com.uber.cadence.SignalWorkflowExecutionRequest signalRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
SignalWorkflowExecution_call method_call = new SignalWorkflowExecution_call(signalRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class SignalWorkflowExecution_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.SignalWorkflowExecutionRequest signalRequest;
public SignalWorkflowExecution_call(com.uber.cadence.SignalWorkflowExecutionRequest signalRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.signalRequest = signalRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("SignalWorkflowExecution", org.apache.thrift.protocol.TMessageType.CALL, 0));
SignalWorkflowExecution_args args = new SignalWorkflowExecution_args();
args.setSignalRequest(signalRequest);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_SignalWorkflowExecution();
}
}
public void SignalWithStartWorkflowExecution(com.uber.cadence.SignalWithStartWorkflowExecutionRequest signalWithStartRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
SignalWithStartWorkflowExecution_call method_call = new SignalWithStartWorkflowExecution_call(signalWithStartRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class SignalWithStartWorkflowExecution_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.SignalWithStartWorkflowExecutionRequest signalWithStartRequest;
public SignalWithStartWorkflowExecution_call(com.uber.cadence.SignalWithStartWorkflowExecutionRequest signalWithStartRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.signalWithStartRequest = signalWithStartRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("SignalWithStartWorkflowExecution", org.apache.thrift.protocol.TMessageType.CALL, 0));
SignalWithStartWorkflowExecution_args args = new SignalWithStartWorkflowExecution_args();
args.setSignalWithStartRequest(signalWithStartRequest);
args.write(prot);
prot.writeMessageEnd();
}
public com.uber.cadence.StartWorkflowExecutionResponse getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, com.uber.cadence.WorkflowExecutionAlreadyStartedError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_SignalWithStartWorkflowExecution();
}
}
public void TerminateWorkflowExecution(com.uber.cadence.TerminateWorkflowExecutionRequest terminateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
TerminateWorkflowExecution_call method_call = new TerminateWorkflowExecution_call(terminateRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class TerminateWorkflowExecution_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.TerminateWorkflowExecutionRequest terminateRequest;
public TerminateWorkflowExecution_call(com.uber.cadence.TerminateWorkflowExecutionRequest terminateRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.terminateRequest = terminateRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("TerminateWorkflowExecution", org.apache.thrift.protocol.TMessageType.CALL, 0));
TerminateWorkflowExecution_args args = new TerminateWorkflowExecution_args();
args.setTerminateRequest(terminateRequest);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, com.uber.cadence.LimitExceededError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_TerminateWorkflowExecution();
}
}
public void ListOpenWorkflowExecutions(com.uber.cadence.ListOpenWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
ListOpenWorkflowExecutions_call method_call = new ListOpenWorkflowExecutions_call(listRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class ListOpenWorkflowExecutions_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.ListOpenWorkflowExecutionsRequest listRequest;
public ListOpenWorkflowExecutions_call(com.uber.cadence.ListOpenWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.listRequest = listRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("ListOpenWorkflowExecutions", org.apache.thrift.protocol.TMessageType.CALL, 0));
ListOpenWorkflowExecutions_args args = new ListOpenWorkflowExecutions_args();
args.setListRequest(listRequest);
args.write(prot);
prot.writeMessageEnd();
}
public com.uber.cadence.ListOpenWorkflowExecutionsResponse getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, com.uber.cadence.LimitExceededError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_ListOpenWorkflowExecutions();
}
}
public void ListClosedWorkflowExecutions(com.uber.cadence.ListClosedWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
ListClosedWorkflowExecutions_call method_call = new ListClosedWorkflowExecutions_call(listRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class ListClosedWorkflowExecutions_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.ListClosedWorkflowExecutionsRequest listRequest;
public ListClosedWorkflowExecutions_call(com.uber.cadence.ListClosedWorkflowExecutionsRequest listRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.listRequest = listRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("ListClosedWorkflowExecutions", org.apache.thrift.protocol.TMessageType.CALL, 0));
ListClosedWorkflowExecutions_args args = new ListClosedWorkflowExecutions_args();
args.setListRequest(listRequest);
args.write(prot);
prot.writeMessageEnd();
}
public com.uber.cadence.ListClosedWorkflowExecutionsResponse getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_ListClosedWorkflowExecutions();
}
}
public void RespondQueryTaskCompleted(com.uber.cadence.RespondQueryTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
RespondQueryTaskCompleted_call method_call = new RespondQueryTaskCompleted_call(completeRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class RespondQueryTaskCompleted_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.RespondQueryTaskCompletedRequest completeRequest;
public RespondQueryTaskCompleted_call(com.uber.cadence.RespondQueryTaskCompletedRequest completeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.completeRequest = completeRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("RespondQueryTaskCompleted", org.apache.thrift.protocol.TMessageType.CALL, 0));
RespondQueryTaskCompleted_args args = new RespondQueryTaskCompleted_args();
args.setCompleteRequest(completeRequest);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_RespondQueryTaskCompleted();
}
}
public void ResetStickyTaskList(com.uber.cadence.ResetStickyTaskListRequest resetRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
ResetStickyTaskList_call method_call = new ResetStickyTaskList_call(resetRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class ResetStickyTaskList_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.ResetStickyTaskListRequest resetRequest;
public ResetStickyTaskList_call(com.uber.cadence.ResetStickyTaskListRequest resetRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.resetRequest = resetRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("ResetStickyTaskList", org.apache.thrift.protocol.TMessageType.CALL, 0));
ResetStickyTaskList_args args = new ResetStickyTaskList_args();
args.setResetRequest(resetRequest);
args.write(prot);
prot.writeMessageEnd();
}
public com.uber.cadence.ResetStickyTaskListResponse getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, com.uber.cadence.DomainNotActiveError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_ResetStickyTaskList();
}
}
public void QueryWorkflow(com.uber.cadence.QueryWorkflowRequest queryRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
QueryWorkflow_call method_call = new QueryWorkflow_call(queryRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class QueryWorkflow_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.QueryWorkflowRequest queryRequest;
public QueryWorkflow_call(com.uber.cadence.QueryWorkflowRequest queryRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.queryRequest = queryRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("QueryWorkflow", org.apache.thrift.protocol.TMessageType.CALL, 0));
QueryWorkflow_args args = new QueryWorkflow_args();
args.setQueryRequest(queryRequest);
args.write(prot);
prot.writeMessageEnd();
}
public com.uber.cadence.QueryWorkflowResponse getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.QueryFailedError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_QueryWorkflow();
}
}
public void DescribeWorkflowExecution(com.uber.cadence.DescribeWorkflowExecutionRequest describeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
DescribeWorkflowExecution_call method_call = new DescribeWorkflowExecution_call(describeRequest, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class DescribeWorkflowExecution_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.DescribeWorkflowExecutionRequest describeRequest;
public DescribeWorkflowExecution_call(com.uber.cadence.DescribeWorkflowExecutionRequest describeRequest, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.describeRequest = describeRequest;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("DescribeWorkflowExecution", org.apache.thrift.protocol.TMessageType.CALL, 0));
DescribeWorkflowExecution_args args = new DescribeWorkflowExecution_args();
args.setDescribeRequest(describeRequest);
args.write(prot);
prot.writeMessageEnd();
}
public com.uber.cadence.DescribeWorkflowExecutionResponse getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_DescribeWorkflowExecution();
}
}
public void DescribeTaskList(com.uber.cadence.DescribeTaskListRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
DescribeTaskList_call method_call = new DescribeTaskList_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class DescribeTaskList_call extends org.apache.thrift.async.TAsyncMethodCall {
private com.uber.cadence.DescribeTaskListRequest request;
public DescribeTaskList_call(com.uber.cadence.DescribeTaskListRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("DescribeTaskList", org.apache.thrift.protocol.TMessageType.CALL, 0));
DescribeTaskList_args args = new DescribeTaskList_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public com.uber.cadence.DescribeTaskListResponse getResult() throws com.uber.cadence.BadRequestError, com.uber.cadence.InternalServiceError, com.uber.cadence.EntityNotExistsError, com.uber.cadence.LimitExceededError, com.uber.cadence.ServiceBusyError, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_DescribeTaskList();
}
}
}
public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor {
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
public Processor(I iface) {
super(iface, getProcessMap(new HashMap>()));
}
protected Processor(I iface, Map> processMap) {
super(iface, getProcessMap(processMap));
}
private static Map> getProcessMap(Map> processMap) {
processMap.put("RegisterDomain", new RegisterDomain());
processMap.put("DescribeDomain", new DescribeDomain());
processMap.put("ListDomains", new ListDomains());
processMap.put("UpdateDomain", new UpdateDomain());
processMap.put("DeprecateDomain", new DeprecateDomain());
processMap.put("StartWorkflowExecution", new StartWorkflowExecution());
processMap.put("GetWorkflowExecutionHistory", new GetWorkflowExecutionHistory());
processMap.put("PollForDecisionTask", new PollForDecisionTask());
processMap.put("RespondDecisionTaskCompleted", new RespondDecisionTaskCompleted());
processMap.put("RespondDecisionTaskFailed", new RespondDecisionTaskFailed());
processMap.put("PollForActivityTask", new PollForActivityTask());
processMap.put("RecordActivityTaskHeartbeat", new RecordActivityTaskHeartbeat());
processMap.put("RecordActivityTaskHeartbeatByID", new RecordActivityTaskHeartbeatByID());
processMap.put("RespondActivityTaskCompleted", new RespondActivityTaskCompleted());
processMap.put("RespondActivityTaskCompletedByID", new RespondActivityTaskCompletedByID());
processMap.put("RespondActivityTaskFailed", new RespondActivityTaskFailed());
processMap.put("RespondActivityTaskFailedByID", new RespondActivityTaskFailedByID());
processMap.put("RespondActivityTaskCanceled", new RespondActivityTaskCanceled());
processMap.put("RespondActivityTaskCanceledByID", new RespondActivityTaskCanceledByID());
processMap.put("RequestCancelWorkflowExecution", new RequestCancelWorkflowExecution());
processMap.put("SignalWorkflowExecution", new SignalWorkflowExecution());
processMap.put("SignalWithStartWorkflowExecution", new SignalWithStartWorkflowExecution());
processMap.put("TerminateWorkflowExecution", new TerminateWorkflowExecution());
processMap.put("ListOpenWorkflowExecutions", new ListOpenWorkflowExecutions());
processMap.put("ListClosedWorkflowExecutions", new ListClosedWorkflowExecutions());
processMap.put("RespondQueryTaskCompleted", new RespondQueryTaskCompleted());
processMap.put("ResetStickyTaskList", new ResetStickyTaskList());
processMap.put("QueryWorkflow", new QueryWorkflow());
processMap.put("DescribeWorkflowExecution", new DescribeWorkflowExecution());
processMap.put("DescribeTaskList", new DescribeTaskList());
return processMap;
}
public static class RegisterDomain extends org.apache.thrift.ProcessFunction {
public RegisterDomain() {
super("RegisterDomain");
}
public RegisterDomain_args getEmptyArgsInstance() {
return new RegisterDomain_args();
}
protected boolean isOneway() {
return false;
}
public RegisterDomain_result getResult(I iface, RegisterDomain_args args) throws org.apache.thrift.TException {
RegisterDomain_result result = new RegisterDomain_result();
try {
iface.RegisterDomain(args.registerRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.DomainAlreadyExistsError domainExistsError) {
result.domainExistsError = domainExistsError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
}
return result;
}
}
public static class DescribeDomain extends org.apache.thrift.ProcessFunction {
public DescribeDomain() {
super("DescribeDomain");
}
public DescribeDomain_args getEmptyArgsInstance() {
return new DescribeDomain_args();
}
protected boolean isOneway() {
return false;
}
public DescribeDomain_result getResult(I iface, DescribeDomain_args args) throws org.apache.thrift.TException {
DescribeDomain_result result = new DescribeDomain_result();
try {
result.success = iface.DescribeDomain(args.describeRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
}
return result;
}
}
public static class ListDomains extends org.apache.thrift.ProcessFunction {
public ListDomains() {
super("ListDomains");
}
public ListDomains_args getEmptyArgsInstance() {
return new ListDomains_args();
}
protected boolean isOneway() {
return false;
}
public ListDomains_result getResult(I iface, ListDomains_args args) throws org.apache.thrift.TException {
ListDomains_result result = new ListDomains_result();
try {
result.success = iface.ListDomains(args.listRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
}
return result;
}
}
public static class UpdateDomain extends org.apache.thrift.ProcessFunction {
public UpdateDomain() {
super("UpdateDomain");
}
public UpdateDomain_args getEmptyArgsInstance() {
return new UpdateDomain_args();
}
protected boolean isOneway() {
return false;
}
public UpdateDomain_result getResult(I iface, UpdateDomain_args args) throws org.apache.thrift.TException {
UpdateDomain_result result = new UpdateDomain_result();
try {
result.success = iface.UpdateDomain(args.updateRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
}
return result;
}
}
public static class DeprecateDomain extends org.apache.thrift.ProcessFunction {
public DeprecateDomain() {
super("DeprecateDomain");
}
public DeprecateDomain_args getEmptyArgsInstance() {
return new DeprecateDomain_args();
}
protected boolean isOneway() {
return false;
}
public DeprecateDomain_result getResult(I iface, DeprecateDomain_args args) throws org.apache.thrift.TException {
DeprecateDomain_result result = new DeprecateDomain_result();
try {
iface.DeprecateDomain(args.deprecateRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
}
return result;
}
}
public static class StartWorkflowExecution extends org.apache.thrift.ProcessFunction {
public StartWorkflowExecution() {
super("StartWorkflowExecution");
}
public StartWorkflowExecution_args getEmptyArgsInstance() {
return new StartWorkflowExecution_args();
}
protected boolean isOneway() {
return false;
}
public StartWorkflowExecution_result getResult(I iface, StartWorkflowExecution_args args) throws org.apache.thrift.TException {
StartWorkflowExecution_result result = new StartWorkflowExecution_result();
try {
result.success = iface.StartWorkflowExecution(args.startRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.WorkflowExecutionAlreadyStartedError sessionAlreadyExistError) {
result.sessionAlreadyExistError = sessionAlreadyExistError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
}
return result;
}
}
public static class GetWorkflowExecutionHistory extends org.apache.thrift.ProcessFunction {
public GetWorkflowExecutionHistory() {
super("GetWorkflowExecutionHistory");
}
public GetWorkflowExecutionHistory_args getEmptyArgsInstance() {
return new GetWorkflowExecutionHistory_args();
}
protected boolean isOneway() {
return false;
}
public GetWorkflowExecutionHistory_result getResult(I iface, GetWorkflowExecutionHistory_args args) throws org.apache.thrift.TException {
GetWorkflowExecutionHistory_result result = new GetWorkflowExecutionHistory_result();
try {
result.success = iface.GetWorkflowExecutionHistory(args.getRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
}
return result;
}
}
public static class PollForDecisionTask extends org.apache.thrift.ProcessFunction {
public PollForDecisionTask() {
super("PollForDecisionTask");
}
public PollForDecisionTask_args getEmptyArgsInstance() {
return new PollForDecisionTask_args();
}
protected boolean isOneway() {
return false;
}
public PollForDecisionTask_result getResult(I iface, PollForDecisionTask_args args) throws org.apache.thrift.TException {
PollForDecisionTask_result result = new PollForDecisionTask_result();
try {
result.success = iface.PollForDecisionTask(args.pollRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
}
return result;
}
}
public static class RespondDecisionTaskCompleted extends org.apache.thrift.ProcessFunction {
public RespondDecisionTaskCompleted() {
super("RespondDecisionTaskCompleted");
}
public RespondDecisionTaskCompleted_args getEmptyArgsInstance() {
return new RespondDecisionTaskCompleted_args();
}
protected boolean isOneway() {
return false;
}
public RespondDecisionTaskCompleted_result getResult(I iface, RespondDecisionTaskCompleted_args args) throws org.apache.thrift.TException {
RespondDecisionTaskCompleted_result result = new RespondDecisionTaskCompleted_result();
try {
result.success = iface.RespondDecisionTaskCompleted(args.completeRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
}
return result;
}
}
public static class RespondDecisionTaskFailed extends org.apache.thrift.ProcessFunction {
public RespondDecisionTaskFailed() {
super("RespondDecisionTaskFailed");
}
public RespondDecisionTaskFailed_args getEmptyArgsInstance() {
return new RespondDecisionTaskFailed_args();
}
protected boolean isOneway() {
return false;
}
public RespondDecisionTaskFailed_result getResult(I iface, RespondDecisionTaskFailed_args args) throws org.apache.thrift.TException {
RespondDecisionTaskFailed_result result = new RespondDecisionTaskFailed_result();
try {
iface.RespondDecisionTaskFailed(args.failedRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
}
return result;
}
}
public static class PollForActivityTask extends org.apache.thrift.ProcessFunction {
public PollForActivityTask() {
super("PollForActivityTask");
}
public PollForActivityTask_args getEmptyArgsInstance() {
return new PollForActivityTask_args();
}
protected boolean isOneway() {
return false;
}
public PollForActivityTask_result getResult(I iface, PollForActivityTask_args args) throws org.apache.thrift.TException {
PollForActivityTask_result result = new PollForActivityTask_result();
try {
result.success = iface.PollForActivityTask(args.pollRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
}
return result;
}
}
public static class RecordActivityTaskHeartbeat extends org.apache.thrift.ProcessFunction {
public RecordActivityTaskHeartbeat() {
super("RecordActivityTaskHeartbeat");
}
public RecordActivityTaskHeartbeat_args getEmptyArgsInstance() {
return new RecordActivityTaskHeartbeat_args();
}
protected boolean isOneway() {
return false;
}
public RecordActivityTaskHeartbeat_result getResult(I iface, RecordActivityTaskHeartbeat_args args) throws org.apache.thrift.TException {
RecordActivityTaskHeartbeat_result result = new RecordActivityTaskHeartbeat_result();
try {
result.success = iface.RecordActivityTaskHeartbeat(args.heartbeatRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
}
return result;
}
}
public static class RecordActivityTaskHeartbeatByID extends org.apache.thrift.ProcessFunction {
public RecordActivityTaskHeartbeatByID() {
super("RecordActivityTaskHeartbeatByID");
}
public RecordActivityTaskHeartbeatByID_args getEmptyArgsInstance() {
return new RecordActivityTaskHeartbeatByID_args();
}
protected boolean isOneway() {
return false;
}
public RecordActivityTaskHeartbeatByID_result getResult(I iface, RecordActivityTaskHeartbeatByID_args args) throws org.apache.thrift.TException {
RecordActivityTaskHeartbeatByID_result result = new RecordActivityTaskHeartbeatByID_result();
try {
result.success = iface.RecordActivityTaskHeartbeatByID(args.heartbeatRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
}
return result;
}
}
public static class RespondActivityTaskCompleted extends org.apache.thrift.ProcessFunction {
public RespondActivityTaskCompleted() {
super("RespondActivityTaskCompleted");
}
public RespondActivityTaskCompleted_args getEmptyArgsInstance() {
return new RespondActivityTaskCompleted_args();
}
protected boolean isOneway() {
return false;
}
public RespondActivityTaskCompleted_result getResult(I iface, RespondActivityTaskCompleted_args args) throws org.apache.thrift.TException {
RespondActivityTaskCompleted_result result = new RespondActivityTaskCompleted_result();
try {
iface.RespondActivityTaskCompleted(args.completeRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
}
return result;
}
}
public static class RespondActivityTaskCompletedByID extends org.apache.thrift.ProcessFunction {
public RespondActivityTaskCompletedByID() {
super("RespondActivityTaskCompletedByID");
}
public RespondActivityTaskCompletedByID_args getEmptyArgsInstance() {
return new RespondActivityTaskCompletedByID_args();
}
protected boolean isOneway() {
return false;
}
public RespondActivityTaskCompletedByID_result getResult(I iface, RespondActivityTaskCompletedByID_args args) throws org.apache.thrift.TException {
RespondActivityTaskCompletedByID_result result = new RespondActivityTaskCompletedByID_result();
try {
iface.RespondActivityTaskCompletedByID(args.completeRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
}
return result;
}
}
public static class RespondActivityTaskFailed extends org.apache.thrift.ProcessFunction {
public RespondActivityTaskFailed() {
super("RespondActivityTaskFailed");
}
public RespondActivityTaskFailed_args getEmptyArgsInstance() {
return new RespondActivityTaskFailed_args();
}
protected boolean isOneway() {
return false;
}
public RespondActivityTaskFailed_result getResult(I iface, RespondActivityTaskFailed_args args) throws org.apache.thrift.TException {
RespondActivityTaskFailed_result result = new RespondActivityTaskFailed_result();
try {
iface.RespondActivityTaskFailed(args.failRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
}
return result;
}
}
public static class RespondActivityTaskFailedByID extends org.apache.thrift.ProcessFunction {
public RespondActivityTaskFailedByID() {
super("RespondActivityTaskFailedByID");
}
public RespondActivityTaskFailedByID_args getEmptyArgsInstance() {
return new RespondActivityTaskFailedByID_args();
}
protected boolean isOneway() {
return false;
}
public RespondActivityTaskFailedByID_result getResult(I iface, RespondActivityTaskFailedByID_args args) throws org.apache.thrift.TException {
RespondActivityTaskFailedByID_result result = new RespondActivityTaskFailedByID_result();
try {
iface.RespondActivityTaskFailedByID(args.failRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
}
return result;
}
}
public static class RespondActivityTaskCanceled extends org.apache.thrift.ProcessFunction {
public RespondActivityTaskCanceled() {
super("RespondActivityTaskCanceled");
}
public RespondActivityTaskCanceled_args getEmptyArgsInstance() {
return new RespondActivityTaskCanceled_args();
}
protected boolean isOneway() {
return false;
}
public RespondActivityTaskCanceled_result getResult(I iface, RespondActivityTaskCanceled_args args) throws org.apache.thrift.TException {
RespondActivityTaskCanceled_result result = new RespondActivityTaskCanceled_result();
try {
iface.RespondActivityTaskCanceled(args.canceledRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
}
return result;
}
}
public static class RespondActivityTaskCanceledByID extends org.apache.thrift.ProcessFunction {
public RespondActivityTaskCanceledByID() {
super("RespondActivityTaskCanceledByID");
}
public RespondActivityTaskCanceledByID_args getEmptyArgsInstance() {
return new RespondActivityTaskCanceledByID_args();
}
protected boolean isOneway() {
return false;
}
public RespondActivityTaskCanceledByID_result getResult(I iface, RespondActivityTaskCanceledByID_args args) throws org.apache.thrift.TException {
RespondActivityTaskCanceledByID_result result = new RespondActivityTaskCanceledByID_result();
try {
iface.RespondActivityTaskCanceledByID(args.canceledRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
}
return result;
}
}
public static class RequestCancelWorkflowExecution extends org.apache.thrift.ProcessFunction {
public RequestCancelWorkflowExecution() {
super("RequestCancelWorkflowExecution");
}
public RequestCancelWorkflowExecution_args getEmptyArgsInstance() {
return new RequestCancelWorkflowExecution_args();
}
protected boolean isOneway() {
return false;
}
public RequestCancelWorkflowExecution_result getResult(I iface, RequestCancelWorkflowExecution_args args) throws org.apache.thrift.TException {
RequestCancelWorkflowExecution_result result = new RequestCancelWorkflowExecution_result();
try {
iface.RequestCancelWorkflowExecution(args.cancelRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.CancellationAlreadyRequestedError cancellationAlreadyRequestedError) {
result.cancellationAlreadyRequestedError = cancellationAlreadyRequestedError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
}
return result;
}
}
public static class SignalWorkflowExecution extends org.apache.thrift.ProcessFunction {
public SignalWorkflowExecution() {
super("SignalWorkflowExecution");
}
public SignalWorkflowExecution_args getEmptyArgsInstance() {
return new SignalWorkflowExecution_args();
}
protected boolean isOneway() {
return false;
}
public SignalWorkflowExecution_result getResult(I iface, SignalWorkflowExecution_args args) throws org.apache.thrift.TException {
SignalWorkflowExecution_result result = new SignalWorkflowExecution_result();
try {
iface.SignalWorkflowExecution(args.signalRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
}
return result;
}
}
public static class SignalWithStartWorkflowExecution extends org.apache.thrift.ProcessFunction {
public SignalWithStartWorkflowExecution() {
super("SignalWithStartWorkflowExecution");
}
public SignalWithStartWorkflowExecution_args getEmptyArgsInstance() {
return new SignalWithStartWorkflowExecution_args();
}
protected boolean isOneway() {
return false;
}
public SignalWithStartWorkflowExecution_result getResult(I iface, SignalWithStartWorkflowExecution_args args) throws org.apache.thrift.TException {
SignalWithStartWorkflowExecution_result result = new SignalWithStartWorkflowExecution_result();
try {
result.success = iface.SignalWithStartWorkflowExecution(args.signalWithStartRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
} catch (com.uber.cadence.WorkflowExecutionAlreadyStartedError workflowAlreadyStartedError) {
result.workflowAlreadyStartedError = workflowAlreadyStartedError;
}
return result;
}
}
public static class TerminateWorkflowExecution extends org.apache.thrift.ProcessFunction {
public TerminateWorkflowExecution() {
super("TerminateWorkflowExecution");
}
public TerminateWorkflowExecution_args getEmptyArgsInstance() {
return new TerminateWorkflowExecution_args();
}
protected boolean isOneway() {
return false;
}
public TerminateWorkflowExecution_result getResult(I iface, TerminateWorkflowExecution_args args) throws org.apache.thrift.TException {
TerminateWorkflowExecution_result result = new TerminateWorkflowExecution_result();
try {
iface.TerminateWorkflowExecution(args.terminateRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
}
return result;
}
}
public static class ListOpenWorkflowExecutions extends org.apache.thrift.ProcessFunction {
public ListOpenWorkflowExecutions() {
super("ListOpenWorkflowExecutions");
}
public ListOpenWorkflowExecutions_args getEmptyArgsInstance() {
return new ListOpenWorkflowExecutions_args();
}
protected boolean isOneway() {
return false;
}
public ListOpenWorkflowExecutions_result getResult(I iface, ListOpenWorkflowExecutions_args args) throws org.apache.thrift.TException {
ListOpenWorkflowExecutions_result result = new ListOpenWorkflowExecutions_result();
try {
result.success = iface.ListOpenWorkflowExecutions(args.listRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
}
return result;
}
}
public static class ListClosedWorkflowExecutions extends org.apache.thrift.ProcessFunction {
public ListClosedWorkflowExecutions() {
super("ListClosedWorkflowExecutions");
}
public ListClosedWorkflowExecutions_args getEmptyArgsInstance() {
return new ListClosedWorkflowExecutions_args();
}
protected boolean isOneway() {
return false;
}
public ListClosedWorkflowExecutions_result getResult(I iface, ListClosedWorkflowExecutions_args args) throws org.apache.thrift.TException {
ListClosedWorkflowExecutions_result result = new ListClosedWorkflowExecutions_result();
try {
result.success = iface.ListClosedWorkflowExecutions(args.listRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
}
return result;
}
}
public static class RespondQueryTaskCompleted extends org.apache.thrift.ProcessFunction {
public RespondQueryTaskCompleted() {
super("RespondQueryTaskCompleted");
}
public RespondQueryTaskCompleted_args getEmptyArgsInstance() {
return new RespondQueryTaskCompleted_args();
}
protected boolean isOneway() {
return false;
}
public RespondQueryTaskCompleted_result getResult(I iface, RespondQueryTaskCompleted_args args) throws org.apache.thrift.TException {
RespondQueryTaskCompleted_result result = new RespondQueryTaskCompleted_result();
try {
iface.RespondQueryTaskCompleted(args.completeRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
}
return result;
}
}
public static class ResetStickyTaskList extends org.apache.thrift.ProcessFunction {
public ResetStickyTaskList() {
super("ResetStickyTaskList");
}
public ResetStickyTaskList_args getEmptyArgsInstance() {
return new ResetStickyTaskList_args();
}
protected boolean isOneway() {
return false;
}
public ResetStickyTaskList_result getResult(I iface, ResetStickyTaskList_args args) throws org.apache.thrift.TException {
ResetStickyTaskList_result result = new ResetStickyTaskList_result();
try {
result.success = iface.ResetStickyTaskList(args.resetRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
} catch (com.uber.cadence.DomainNotActiveError domainNotActiveError) {
result.domainNotActiveError = domainNotActiveError;
}
return result;
}
}
public static class QueryWorkflow extends org.apache.thrift.ProcessFunction {
public QueryWorkflow() {
super("QueryWorkflow");
}
public QueryWorkflow_args getEmptyArgsInstance() {
return new QueryWorkflow_args();
}
protected boolean isOneway() {
return false;
}
public QueryWorkflow_result getResult(I iface, QueryWorkflow_args args) throws org.apache.thrift.TException {
QueryWorkflow_result result = new QueryWorkflow_result();
try {
result.success = iface.QueryWorkflow(args.queryRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.QueryFailedError queryFailedError) {
result.queryFailedError = queryFailedError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
}
return result;
}
}
public static class DescribeWorkflowExecution extends org.apache.thrift.ProcessFunction {
public DescribeWorkflowExecution() {
super("DescribeWorkflowExecution");
}
public DescribeWorkflowExecution_args getEmptyArgsInstance() {
return new DescribeWorkflowExecution_args();
}
protected boolean isOneway() {
return false;
}
public DescribeWorkflowExecution_result getResult(I iface, DescribeWorkflowExecution_args args) throws org.apache.thrift.TException {
DescribeWorkflowExecution_result result = new DescribeWorkflowExecution_result();
try {
result.success = iface.DescribeWorkflowExecution(args.describeRequest);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
}
return result;
}
}
public static class DescribeTaskList extends org.apache.thrift.ProcessFunction {
public DescribeTaskList() {
super("DescribeTaskList");
}
public DescribeTaskList_args getEmptyArgsInstance() {
return new DescribeTaskList_args();
}
protected boolean isOneway() {
return false;
}
public DescribeTaskList_result getResult(I iface, DescribeTaskList_args args) throws org.apache.thrift.TException {
DescribeTaskList_result result = new DescribeTaskList_result();
try {
result.success = iface.DescribeTaskList(args.request);
} catch (com.uber.cadence.BadRequestError badRequestError) {
result.badRequestError = badRequestError;
} catch (com.uber.cadence.InternalServiceError internalServiceError) {
result.internalServiceError = internalServiceError;
} catch (com.uber.cadence.EntityNotExistsError entityNotExistError) {
result.entityNotExistError = entityNotExistError;
} catch (com.uber.cadence.LimitExceededError limitExceededError) {
result.limitExceededError = limitExceededError;
} catch (com.uber.cadence.ServiceBusyError serviceBusyError) {
result.serviceBusyError = serviceBusyError;
}
return result;
}
}
}
public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor {
private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
public AsyncProcessor(I iface) {
super(iface, getProcessMap(new HashMap>()));
}
protected AsyncProcessor(I iface, Map> processMap) {
super(iface, getProcessMap(processMap));
}
private static Map> getProcessMap(Map> processMap) {
processMap.put("RegisterDomain", new RegisterDomain());
processMap.put("DescribeDomain", new DescribeDomain());
processMap.put("ListDomains", new ListDomains());
processMap.put("UpdateDomain", new UpdateDomain());
processMap.put("DeprecateDomain", new DeprecateDomain());
processMap.put("StartWorkflowExecution", new StartWorkflowExecution());
processMap.put("GetWorkflowExecutionHistory", new GetWorkflowExecutionHistory());
processMap.put("PollForDecisionTask", new PollForDecisionTask());
processMap.put("RespondDecisionTaskCompleted", new RespondDecisionTaskCompleted());
processMap.put("RespondDecisionTaskFailed", new RespondDecisionTaskFailed());
processMap.put("PollForActivityTask", new PollForActivityTask());
processMap.put("RecordActivityTaskHeartbeat", new RecordActivityTaskHeartbeat());
processMap.put("RecordActivityTaskHeartbeatByID", new RecordActivityTaskHeartbeatByID());
processMap.put("RespondActivityTaskCompleted", new RespondActivityTaskCompleted());
processMap.put("RespondActivityTaskCompletedByID", new RespondActivityTaskCompletedByID());
processMap.put("RespondActivityTaskFailed", new RespondActivityTaskFailed());
processMap.put("RespondActivityTaskFailedByID", new RespondActivityTaskFailedByID());
processMap.put("RespondActivityTaskCanceled", new RespondActivityTaskCanceled());
processMap.put("RespondActivityTaskCanceledByID", new RespondActivityTaskCanceledByID());
processMap.put("RequestCancelWorkflowExecution", new RequestCancelWorkflowExecution());
processMap.put("SignalWorkflowExecution", new SignalWorkflowExecution());
processMap.put("SignalWithStartWorkflowExecution", new SignalWithStartWorkflowExecution());
processMap.put("TerminateWorkflowExecution", new TerminateWorkflowExecution());
processMap.put("ListOpenWorkflowExecutions", new ListOpenWorkflowExecutions());
processMap.put("ListClosedWorkflowExecutions", new ListClosedWorkflowExecutions());
processMap.put("RespondQueryTaskCompleted", new RespondQueryTaskCompleted());
processMap.put("ResetStickyTaskList", new ResetStickyTaskList());
processMap.put("QueryWorkflow", new QueryWorkflow());
processMap.put("DescribeWorkflowExecution", new DescribeWorkflowExecution());
processMap.put("DescribeTaskList", new DescribeTaskList());
return processMap;
}
public static class RegisterDomain extends org.apache.thrift.AsyncProcessFunction {
public RegisterDomain() {
super("RegisterDomain");
}
public RegisterDomain_args getEmptyArgsInstance() {
return new RegisterDomain_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
RegisterDomain_result result = new RegisterDomain_result();
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
RegisterDomain_result result = new RegisterDomain_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainAlreadyExistsError) {
result.domainExistsError = (com.uber.cadence.DomainAlreadyExistsError) e;
result.setDomainExistsErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, RegisterDomain_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.RegisterDomain(args.registerRequest,resultHandler);
}
}
public static class DescribeDomain extends org.apache.thrift.AsyncProcessFunction {
public DescribeDomain() {
super("DescribeDomain");
}
public DescribeDomain_args getEmptyArgsInstance() {
return new DescribeDomain_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.uber.cadence.DescribeDomainResponse o) {
DescribeDomain_result result = new DescribeDomain_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
DescribeDomain_result result = new DescribeDomain_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, DescribeDomain_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.DescribeDomain(args.describeRequest,resultHandler);
}
}
public static class ListDomains extends org.apache.thrift.AsyncProcessFunction {
public ListDomains() {
super("ListDomains");
}
public ListDomains_args getEmptyArgsInstance() {
return new ListDomains_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.uber.cadence.ListDomainsResponse o) {
ListDomains_result result = new ListDomains_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
ListDomains_result result = new ListDomains_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, ListDomains_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.ListDomains(args.listRequest,resultHandler);
}
}
public static class UpdateDomain extends org.apache.thrift.AsyncProcessFunction {
public UpdateDomain() {
super("UpdateDomain");
}
public UpdateDomain_args getEmptyArgsInstance() {
return new UpdateDomain_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.uber.cadence.UpdateDomainResponse o) {
UpdateDomain_result result = new UpdateDomain_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
UpdateDomain_result result = new UpdateDomain_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, UpdateDomain_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.UpdateDomain(args.updateRequest,resultHandler);
}
}
public static class DeprecateDomain extends org.apache.thrift.AsyncProcessFunction {
public DeprecateDomain() {
super("DeprecateDomain");
}
public DeprecateDomain_args getEmptyArgsInstance() {
return new DeprecateDomain_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
DeprecateDomain_result result = new DeprecateDomain_result();
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
DeprecateDomain_result result = new DeprecateDomain_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, DeprecateDomain_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.DeprecateDomain(args.deprecateRequest,resultHandler);
}
}
public static class StartWorkflowExecution extends org.apache.thrift.AsyncProcessFunction {
public StartWorkflowExecution() {
super("StartWorkflowExecution");
}
public StartWorkflowExecution_args getEmptyArgsInstance() {
return new StartWorkflowExecution_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.uber.cadence.StartWorkflowExecutionResponse o) {
StartWorkflowExecution_result result = new StartWorkflowExecution_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
StartWorkflowExecution_result result = new StartWorkflowExecution_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.WorkflowExecutionAlreadyStartedError) {
result.sessionAlreadyExistError = (com.uber.cadence.WorkflowExecutionAlreadyStartedError) e;
result.setSessionAlreadyExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, StartWorkflowExecution_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.StartWorkflowExecution(args.startRequest,resultHandler);
}
}
public static class GetWorkflowExecutionHistory extends org.apache.thrift.AsyncProcessFunction {
public GetWorkflowExecutionHistory() {
super("GetWorkflowExecutionHistory");
}
public GetWorkflowExecutionHistory_args getEmptyArgsInstance() {
return new GetWorkflowExecutionHistory_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.uber.cadence.GetWorkflowExecutionHistoryResponse o) {
GetWorkflowExecutionHistory_result result = new GetWorkflowExecutionHistory_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
GetWorkflowExecutionHistory_result result = new GetWorkflowExecutionHistory_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, GetWorkflowExecutionHistory_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.GetWorkflowExecutionHistory(args.getRequest,resultHandler);
}
}
public static class PollForDecisionTask extends org.apache.thrift.AsyncProcessFunction {
public PollForDecisionTask() {
super("PollForDecisionTask");
}
public PollForDecisionTask_args getEmptyArgsInstance() {
return new PollForDecisionTask_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.uber.cadence.PollForDecisionTaskResponse o) {
PollForDecisionTask_result result = new PollForDecisionTask_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
PollForDecisionTask_result result = new PollForDecisionTask_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, PollForDecisionTask_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.PollForDecisionTask(args.pollRequest,resultHandler);
}
}
public static class RespondDecisionTaskCompleted extends org.apache.thrift.AsyncProcessFunction {
public RespondDecisionTaskCompleted() {
super("RespondDecisionTaskCompleted");
}
public RespondDecisionTaskCompleted_args getEmptyArgsInstance() {
return new RespondDecisionTaskCompleted_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.uber.cadence.RespondDecisionTaskCompletedResponse o) {
RespondDecisionTaskCompleted_result result = new RespondDecisionTaskCompleted_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
RespondDecisionTaskCompleted_result result = new RespondDecisionTaskCompleted_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, RespondDecisionTaskCompleted_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.RespondDecisionTaskCompleted(args.completeRequest,resultHandler);
}
}
public static class RespondDecisionTaskFailed extends org.apache.thrift.AsyncProcessFunction {
public RespondDecisionTaskFailed() {
super("RespondDecisionTaskFailed");
}
public RespondDecisionTaskFailed_args getEmptyArgsInstance() {
return new RespondDecisionTaskFailed_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
RespondDecisionTaskFailed_result result = new RespondDecisionTaskFailed_result();
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
RespondDecisionTaskFailed_result result = new RespondDecisionTaskFailed_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, RespondDecisionTaskFailed_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.RespondDecisionTaskFailed(args.failedRequest,resultHandler);
}
}
public static class PollForActivityTask extends org.apache.thrift.AsyncProcessFunction {
public PollForActivityTask() {
super("PollForActivityTask");
}
public PollForActivityTask_args getEmptyArgsInstance() {
return new PollForActivityTask_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.uber.cadence.PollForActivityTaskResponse o) {
PollForActivityTask_result result = new PollForActivityTask_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
PollForActivityTask_result result = new PollForActivityTask_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, PollForActivityTask_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.PollForActivityTask(args.pollRequest,resultHandler);
}
}
public static class RecordActivityTaskHeartbeat extends org.apache.thrift.AsyncProcessFunction {
public RecordActivityTaskHeartbeat() {
super("RecordActivityTaskHeartbeat");
}
public RecordActivityTaskHeartbeat_args getEmptyArgsInstance() {
return new RecordActivityTaskHeartbeat_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.uber.cadence.RecordActivityTaskHeartbeatResponse o) {
RecordActivityTaskHeartbeat_result result = new RecordActivityTaskHeartbeat_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
RecordActivityTaskHeartbeat_result result = new RecordActivityTaskHeartbeat_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, RecordActivityTaskHeartbeat_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.RecordActivityTaskHeartbeat(args.heartbeatRequest,resultHandler);
}
}
public static class RecordActivityTaskHeartbeatByID extends org.apache.thrift.AsyncProcessFunction {
public RecordActivityTaskHeartbeatByID() {
super("RecordActivityTaskHeartbeatByID");
}
public RecordActivityTaskHeartbeatByID_args getEmptyArgsInstance() {
return new RecordActivityTaskHeartbeatByID_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.uber.cadence.RecordActivityTaskHeartbeatResponse o) {
RecordActivityTaskHeartbeatByID_result result = new RecordActivityTaskHeartbeatByID_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
RecordActivityTaskHeartbeatByID_result result = new RecordActivityTaskHeartbeatByID_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, RecordActivityTaskHeartbeatByID_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.RecordActivityTaskHeartbeatByID(args.heartbeatRequest,resultHandler);
}
}
public static class RespondActivityTaskCompleted extends org.apache.thrift.AsyncProcessFunction {
public RespondActivityTaskCompleted() {
super("RespondActivityTaskCompleted");
}
public RespondActivityTaskCompleted_args getEmptyArgsInstance() {
return new RespondActivityTaskCompleted_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
RespondActivityTaskCompleted_result result = new RespondActivityTaskCompleted_result();
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
RespondActivityTaskCompleted_result result = new RespondActivityTaskCompleted_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, RespondActivityTaskCompleted_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.RespondActivityTaskCompleted(args.completeRequest,resultHandler);
}
}
public static class RespondActivityTaskCompletedByID extends org.apache.thrift.AsyncProcessFunction {
public RespondActivityTaskCompletedByID() {
super("RespondActivityTaskCompletedByID");
}
public RespondActivityTaskCompletedByID_args getEmptyArgsInstance() {
return new RespondActivityTaskCompletedByID_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
RespondActivityTaskCompletedByID_result result = new RespondActivityTaskCompletedByID_result();
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
RespondActivityTaskCompletedByID_result result = new RespondActivityTaskCompletedByID_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, RespondActivityTaskCompletedByID_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.RespondActivityTaskCompletedByID(args.completeRequest,resultHandler);
}
}
public static class RespondActivityTaskFailed extends org.apache.thrift.AsyncProcessFunction {
public RespondActivityTaskFailed() {
super("RespondActivityTaskFailed");
}
public RespondActivityTaskFailed_args getEmptyArgsInstance() {
return new RespondActivityTaskFailed_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
RespondActivityTaskFailed_result result = new RespondActivityTaskFailed_result();
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
RespondActivityTaskFailed_result result = new RespondActivityTaskFailed_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, RespondActivityTaskFailed_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.RespondActivityTaskFailed(args.failRequest,resultHandler);
}
}
public static class RespondActivityTaskFailedByID extends org.apache.thrift.AsyncProcessFunction {
public RespondActivityTaskFailedByID() {
super("RespondActivityTaskFailedByID");
}
public RespondActivityTaskFailedByID_args getEmptyArgsInstance() {
return new RespondActivityTaskFailedByID_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
RespondActivityTaskFailedByID_result result = new RespondActivityTaskFailedByID_result();
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
RespondActivityTaskFailedByID_result result = new RespondActivityTaskFailedByID_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, RespondActivityTaskFailedByID_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.RespondActivityTaskFailedByID(args.failRequest,resultHandler);
}
}
public static class RespondActivityTaskCanceled extends org.apache.thrift.AsyncProcessFunction {
public RespondActivityTaskCanceled() {
super("RespondActivityTaskCanceled");
}
public RespondActivityTaskCanceled_args getEmptyArgsInstance() {
return new RespondActivityTaskCanceled_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
RespondActivityTaskCanceled_result result = new RespondActivityTaskCanceled_result();
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
RespondActivityTaskCanceled_result result = new RespondActivityTaskCanceled_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, RespondActivityTaskCanceled_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.RespondActivityTaskCanceled(args.canceledRequest,resultHandler);
}
}
public static class RespondActivityTaskCanceledByID extends org.apache.thrift.AsyncProcessFunction {
public RespondActivityTaskCanceledByID() {
super("RespondActivityTaskCanceledByID");
}
public RespondActivityTaskCanceledByID_args getEmptyArgsInstance() {
return new RespondActivityTaskCanceledByID_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
RespondActivityTaskCanceledByID_result result = new RespondActivityTaskCanceledByID_result();
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
RespondActivityTaskCanceledByID_result result = new RespondActivityTaskCanceledByID_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, RespondActivityTaskCanceledByID_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.RespondActivityTaskCanceledByID(args.canceledRequest,resultHandler);
}
}
public static class RequestCancelWorkflowExecution extends org.apache.thrift.AsyncProcessFunction {
public RequestCancelWorkflowExecution() {
super("RequestCancelWorkflowExecution");
}
public RequestCancelWorkflowExecution_args getEmptyArgsInstance() {
return new RequestCancelWorkflowExecution_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
RequestCancelWorkflowExecution_result result = new RequestCancelWorkflowExecution_result();
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
RequestCancelWorkflowExecution_result result = new RequestCancelWorkflowExecution_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.CancellationAlreadyRequestedError) {
result.cancellationAlreadyRequestedError = (com.uber.cadence.CancellationAlreadyRequestedError) e;
result.setCancellationAlreadyRequestedErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, RequestCancelWorkflowExecution_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.RequestCancelWorkflowExecution(args.cancelRequest,resultHandler);
}
}
public static class SignalWorkflowExecution extends org.apache.thrift.AsyncProcessFunction {
public SignalWorkflowExecution() {
super("SignalWorkflowExecution");
}
public SignalWorkflowExecution_args getEmptyArgsInstance() {
return new SignalWorkflowExecution_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
SignalWorkflowExecution_result result = new SignalWorkflowExecution_result();
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
SignalWorkflowExecution_result result = new SignalWorkflowExecution_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, SignalWorkflowExecution_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.SignalWorkflowExecution(args.signalRequest,resultHandler);
}
}
public static class SignalWithStartWorkflowExecution extends org.apache.thrift.AsyncProcessFunction {
public SignalWithStartWorkflowExecution() {
super("SignalWithStartWorkflowExecution");
}
public SignalWithStartWorkflowExecution_args getEmptyArgsInstance() {
return new SignalWithStartWorkflowExecution_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.uber.cadence.StartWorkflowExecutionResponse o) {
SignalWithStartWorkflowExecution_result result = new SignalWithStartWorkflowExecution_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
SignalWithStartWorkflowExecution_result result = new SignalWithStartWorkflowExecution_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.WorkflowExecutionAlreadyStartedError) {
result.workflowAlreadyStartedError = (com.uber.cadence.WorkflowExecutionAlreadyStartedError) e;
result.setWorkflowAlreadyStartedErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, SignalWithStartWorkflowExecution_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.SignalWithStartWorkflowExecution(args.signalWithStartRequest,resultHandler);
}
}
public static class TerminateWorkflowExecution extends org.apache.thrift.AsyncProcessFunction {
public TerminateWorkflowExecution() {
super("TerminateWorkflowExecution");
}
public TerminateWorkflowExecution_args getEmptyArgsInstance() {
return new TerminateWorkflowExecution_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
TerminateWorkflowExecution_result result = new TerminateWorkflowExecution_result();
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
TerminateWorkflowExecution_result result = new TerminateWorkflowExecution_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, TerminateWorkflowExecution_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.TerminateWorkflowExecution(args.terminateRequest,resultHandler);
}
}
public static class ListOpenWorkflowExecutions extends org.apache.thrift.AsyncProcessFunction {
public ListOpenWorkflowExecutions() {
super("ListOpenWorkflowExecutions");
}
public ListOpenWorkflowExecutions_args getEmptyArgsInstance() {
return new ListOpenWorkflowExecutions_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.uber.cadence.ListOpenWorkflowExecutionsResponse o) {
ListOpenWorkflowExecutions_result result = new ListOpenWorkflowExecutions_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
ListOpenWorkflowExecutions_result result = new ListOpenWorkflowExecutions_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, ListOpenWorkflowExecutions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.ListOpenWorkflowExecutions(args.listRequest,resultHandler);
}
}
public static class ListClosedWorkflowExecutions extends org.apache.thrift.AsyncProcessFunction {
public ListClosedWorkflowExecutions() {
super("ListClosedWorkflowExecutions");
}
public ListClosedWorkflowExecutions_args getEmptyArgsInstance() {
return new ListClosedWorkflowExecutions_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.uber.cadence.ListClosedWorkflowExecutionsResponse o) {
ListClosedWorkflowExecutions_result result = new ListClosedWorkflowExecutions_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
ListClosedWorkflowExecutions_result result = new ListClosedWorkflowExecutions_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, ListClosedWorkflowExecutions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.ListClosedWorkflowExecutions(args.listRequest,resultHandler);
}
}
public static class RespondQueryTaskCompleted extends org.apache.thrift.AsyncProcessFunction {
public RespondQueryTaskCompleted() {
super("RespondQueryTaskCompleted");
}
public RespondQueryTaskCompleted_args getEmptyArgsInstance() {
return new RespondQueryTaskCompleted_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
RespondQueryTaskCompleted_result result = new RespondQueryTaskCompleted_result();
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
RespondQueryTaskCompleted_result result = new RespondQueryTaskCompleted_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, RespondQueryTaskCompleted_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.RespondQueryTaskCompleted(args.completeRequest,resultHandler);
}
}
public static class ResetStickyTaskList extends org.apache.thrift.AsyncProcessFunction {
public ResetStickyTaskList() {
super("ResetStickyTaskList");
}
public ResetStickyTaskList_args getEmptyArgsInstance() {
return new ResetStickyTaskList_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.uber.cadence.ResetStickyTaskListResponse o) {
ResetStickyTaskList_result result = new ResetStickyTaskList_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
ResetStickyTaskList_result result = new ResetStickyTaskList_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.DomainNotActiveError) {
result.domainNotActiveError = (com.uber.cadence.DomainNotActiveError) e;
result.setDomainNotActiveErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, ResetStickyTaskList_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.ResetStickyTaskList(args.resetRequest,resultHandler);
}
}
public static class QueryWorkflow extends org.apache.thrift.AsyncProcessFunction {
public QueryWorkflow() {
super("QueryWorkflow");
}
public QueryWorkflow_args getEmptyArgsInstance() {
return new QueryWorkflow_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.uber.cadence.QueryWorkflowResponse o) {
QueryWorkflow_result result = new QueryWorkflow_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
QueryWorkflow_result result = new QueryWorkflow_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.QueryFailedError) {
result.queryFailedError = (com.uber.cadence.QueryFailedError) e;
result.setQueryFailedErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, QueryWorkflow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.QueryWorkflow(args.queryRequest,resultHandler);
}
}
public static class DescribeWorkflowExecution extends org.apache.thrift.AsyncProcessFunction {
public DescribeWorkflowExecution() {
super("DescribeWorkflowExecution");
}
public DescribeWorkflowExecution_args getEmptyArgsInstance() {
return new DescribeWorkflowExecution_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.uber.cadence.DescribeWorkflowExecutionResponse o) {
DescribeWorkflowExecution_result result = new DescribeWorkflowExecution_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
DescribeWorkflowExecution_result result = new DescribeWorkflowExecution_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, DescribeWorkflowExecution_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.DescribeWorkflowExecution(args.describeRequest,resultHandler);
}
}
public static class DescribeTaskList extends org.apache.thrift.AsyncProcessFunction {
public DescribeTaskList() {
super("DescribeTaskList");
}
public DescribeTaskList_args getEmptyArgsInstance() {
return new DescribeTaskList_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.uber.cadence.DescribeTaskListResponse o) {
DescribeTaskList_result result = new DescribeTaskList_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
DescribeTaskList_result result = new DescribeTaskList_result();
if (e instanceof com.uber.cadence.BadRequestError) {
result.badRequestError = (com.uber.cadence.BadRequestError) e;
result.setBadRequestErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.InternalServiceError) {
result.internalServiceError = (com.uber.cadence.InternalServiceError) e;
result.setInternalServiceErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.EntityNotExistsError) {
result.entityNotExistError = (com.uber.cadence.EntityNotExistsError) e;
result.setEntityNotExistErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.LimitExceededError) {
result.limitExceededError = (com.uber.cadence.LimitExceededError) e;
result.setLimitExceededErrorIsSet(true);
msg = result;
}
else if (e instanceof com.uber.cadence.ServiceBusyError) {
result.serviceBusyError = (com.uber.cadence.ServiceBusyError) e;
result.setServiceBusyErrorIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, DescribeTaskList_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException {
iface.DescribeTaskList(args.request,resultHandler);
}
}
}
public static class RegisterDomain_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RegisterDomain_args");
private static final org.apache.thrift.protocol.TField REGISTER_REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("registerRequest", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new RegisterDomain_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new RegisterDomain_argsTupleSchemeFactory());
}
public com.uber.cadence.RegisterDomainRequest registerRequest; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
REGISTER_REQUEST((short)1, "registerRequest");
private static final Map byName = new HashMap();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // REGISTER_REQUEST
return REGISTER_REQUEST;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.REGISTER_REQUEST, new org.apache.thrift.meta_data.FieldMetaData("registerRequest", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.uber.cadence.RegisterDomainRequest.class)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RegisterDomain_args.class, metaDataMap);
}
public RegisterDomain_args() {
}
public RegisterDomain_args(
com.uber.cadence.RegisterDomainRequest registerRequest)
{
this();
this.registerRequest = registerRequest;
}
/**
* Performs a deep copy on other .
*/
public RegisterDomain_args(RegisterDomain_args other) {
if (other.isSetRegisterRequest()) {
this.registerRequest = new com.uber.cadence.RegisterDomainRequest(other.registerRequest);
}
}
public RegisterDomain_args deepCopy() {
return new RegisterDomain_args(this);
}
@Override
public void clear() {
this.registerRequest = null;
}
public com.uber.cadence.RegisterDomainRequest getRegisterRequest() {
return this.registerRequest;
}
public RegisterDomain_args setRegisterRequest(com.uber.cadence.RegisterDomainRequest registerRequest) {
this.registerRequest = registerRequest;
return this;
}
public void unsetRegisterRequest() {
this.registerRequest = null;
}
/** Returns true if field registerRequest is set (has been assigned a value) and false otherwise */
public boolean isSetRegisterRequest() {
return this.registerRequest != null;
}
public void setRegisterRequestIsSet(boolean value) {
if (!value) {
this.registerRequest = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case REGISTER_REQUEST:
if (value == null) {
unsetRegisterRequest();
} else {
setRegisterRequest((com.uber.cadence.RegisterDomainRequest)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case REGISTER_REQUEST:
return getRegisterRequest();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case REGISTER_REQUEST:
return isSetRegisterRequest();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof RegisterDomain_args)
return this.equals((RegisterDomain_args)that);
return false;
}
public boolean equals(RegisterDomain_args that) {
if (that == null)
return false;
boolean this_present_registerRequest = true && this.isSetRegisterRequest();
boolean that_present_registerRequest = true && that.isSetRegisterRequest();
if (this_present_registerRequest || that_present_registerRequest) {
if (!(this_present_registerRequest && that_present_registerRequest))
return false;
if (!this.registerRequest.equals(that.registerRequest))
return false;
}
return true;
}
@Override
public int hashCode() {
List list = new ArrayList();
boolean present_registerRequest = true && (isSetRegisterRequest());
list.add(present_registerRequest);
if (present_registerRequest)
list.add(registerRequest);
return list.hashCode();
}
@Override
public int compareTo(RegisterDomain_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = Boolean.valueOf(isSetRegisterRequest()).compareTo(other.isSetRegisterRequest());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRegisterRequest()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.registerRequest, other.registerRequest);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("RegisterDomain_args(");
boolean first = true;
sb.append("registerRequest:");
if (this.registerRequest == null) {
sb.append("null");
} else {
sb.append(this.registerRequest);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (registerRequest != null) {
registerRequest.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class RegisterDomain_argsStandardSchemeFactory implements SchemeFactory {
public RegisterDomain_argsStandardScheme getScheme() {
return new RegisterDomain_argsStandardScheme();
}
}
private static class RegisterDomain_argsStandardScheme extends StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, RegisterDomain_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // REGISTER_REQUEST
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.registerRequest = new com.uber.cadence.RegisterDomainRequest();
struct.registerRequest.read(iprot);
struct.setRegisterRequestIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, RegisterDomain_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.registerRequest != null) {
oprot.writeFieldBegin(REGISTER_REQUEST_FIELD_DESC);
struct.registerRequest.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class RegisterDomain_argsTupleSchemeFactory implements SchemeFactory {
public RegisterDomain_argsTupleScheme getScheme() {
return new RegisterDomain_argsTupleScheme();
}
}
private static class RegisterDomain_argsTupleScheme extends TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, RegisterDomain_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetRegisterRequest()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetRegisterRequest()) {
struct.registerRequest.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, RegisterDomain_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.registerRequest = new com.uber.cadence.RegisterDomainRequest();
struct.registerRequest.read(iprot);
struct.setRegisterRequestIsSet(true);
}
}
}
}
public static class RegisterDomain_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RegisterDomain_result");
private static final org.apache.thrift.protocol.TField BAD_REQUEST_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("badRequestError", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField INTERNAL_SERVICE_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("internalServiceError", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final org.apache.thrift.protocol.TField DOMAIN_EXISTS_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("domainExistsError", org.apache.thrift.protocol.TType.STRUCT, (short)3);
private static final org.apache.thrift.protocol.TField SERVICE_BUSY_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serviceBusyError", org.apache.thrift.protocol.TType.STRUCT, (short)4);
private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new RegisterDomain_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new RegisterDomain_resultTupleSchemeFactory());
}
public com.uber.cadence.BadRequestError badRequestError; // required
public com.uber.cadence.InternalServiceError internalServiceError; // required
public com.uber.cadence.DomainAlreadyExistsError domainExistsError; // required
public com.uber.cadence.ServiceBusyError serviceBusyError; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
BAD_REQUEST_ERROR((short)1, "badRequestError"),
INTERNAL_SERVICE_ERROR((short)2, "internalServiceError"),
DOMAIN_EXISTS_ERROR((short)3, "domainExistsError"),
SERVICE_BUSY_ERROR((short)4, "serviceBusyError");
private static final Map byName = new HashMap();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // BAD_REQUEST_ERROR
return BAD_REQUEST_ERROR;
case 2: // INTERNAL_SERVICE_ERROR
return INTERNAL_SERVICE_ERROR;
case 3: // DOMAIN_EXISTS_ERROR
return DOMAIN_EXISTS_ERROR;
case 4: // SERVICE_BUSY_ERROR
return SERVICE_BUSY_ERROR;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.BAD_REQUEST_ERROR, new org.apache.thrift.meta_data.FieldMetaData("badRequestError", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.INTERNAL_SERVICE_ERROR, new org.apache.thrift.meta_data.FieldMetaData("internalServiceError", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.DOMAIN_EXISTS_ERROR, new org.apache.thrift.meta_data.FieldMetaData("domainExistsError", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
tmpMap.put(_Fields.SERVICE_BUSY_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serviceBusyError", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RegisterDomain_result.class, metaDataMap);
}
public RegisterDomain_result() {
}
public RegisterDomain_result(
com.uber.cadence.BadRequestError badRequestError,
com.uber.cadence.InternalServiceError internalServiceError,
com.uber.cadence.DomainAlreadyExistsError domainExistsError,
com.uber.cadence.ServiceBusyError serviceBusyError)
{
this();
this.badRequestError = badRequestError;
this.internalServiceError = internalServiceError;
this.domainExistsError = domainExistsError;
this.serviceBusyError = serviceBusyError;
}
/**
* Performs a deep copy on other .
*/
public RegisterDomain_result(RegisterDomain_result other) {
if (other.isSetBadRequestError()) {
this.badRequestError = new com.uber.cadence.BadRequestError(other.badRequestError);
}
if (other.isSetInternalServiceError()) {
this.internalServiceError = new com.uber.cadence.InternalServiceError(other.internalServiceError);
}
if (other.isSetDomainExistsError()) {
this.domainExistsError = new com.uber.cadence.DomainAlreadyExistsError(other.domainExistsError);
}
if (other.isSetServiceBusyError()) {
this.serviceBusyError = new com.uber.cadence.ServiceBusyError(other.serviceBusyError);
}
}
public RegisterDomain_result deepCopy() {
return new RegisterDomain_result(this);
}
@Override
public void clear() {
this.badRequestError = null;
this.internalServiceError = null;
this.domainExistsError = null;
this.serviceBusyError = null;
}
public com.uber.cadence.BadRequestError getBadRequestError() {
return this.badRequestError;
}
public RegisterDomain_result setBadRequestError(com.uber.cadence.BadRequestError badRequestError) {
this.badRequestError = badRequestError;
return this;
}
public void unsetBadRequestError() {
this.badRequestError = null;
}
/** Returns true if field badRequestError is set (has been assigned a value) and false otherwise */
public boolean isSetBadRequestError() {
return this.badRequestError != null;
}
public void setBadRequestErrorIsSet(boolean value) {
if (!value) {
this.badRequestError = null;
}
}
public com.uber.cadence.InternalServiceError getInternalServiceError() {
return this.internalServiceError;
}
public RegisterDomain_result setInternalServiceError(com.uber.cadence.InternalServiceError internalServiceError) {
this.internalServiceError = internalServiceError;
return this;
}
public void unsetInternalServiceError() {
this.internalServiceError = null;
}
/** Returns true if field internalServiceError is set (has been assigned a value) and false otherwise */
public boolean isSetInternalServiceError() {
return this.internalServiceError != null;
}
public void setInternalServiceErrorIsSet(boolean value) {
if (!value) {
this.internalServiceError = null;
}
}
public com.uber.cadence.DomainAlreadyExistsError getDomainExistsError() {
return this.domainExistsError;
}
public RegisterDomain_result setDomainExistsError(com.uber.cadence.DomainAlreadyExistsError domainExistsError) {
this.domainExistsError = domainExistsError;
return this;
}
public void unsetDomainExistsError() {
this.domainExistsError = null;
}
/** Returns true if field domainExistsError is set (has been assigned a value) and false otherwise */
public boolean isSetDomainExistsError() {
return this.domainExistsError != null;
}
public void setDomainExistsErrorIsSet(boolean value) {
if (!value) {
this.domainExistsError = null;
}
}
public com.uber.cadence.ServiceBusyError getServiceBusyError() {
return this.serviceBusyError;
}
public RegisterDomain_result setServiceBusyError(com.uber.cadence.ServiceBusyError serviceBusyError) {
this.serviceBusyError = serviceBusyError;
return this;
}
public void unsetServiceBusyError() {
this.serviceBusyError = null;
}
/** Returns true if field serviceBusyError is set (has been assigned a value) and false otherwise */
public boolean isSetServiceBusyError() {
return this.serviceBusyError != null;
}
public void setServiceBusyErrorIsSet(boolean value) {
if (!value) {
this.serviceBusyError = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case BAD_REQUEST_ERROR:
if (value == null) {
unsetBadRequestError();
} else {
setBadRequestError((com.uber.cadence.BadRequestError)value);
}
break;
case INTERNAL_SERVICE_ERROR:
if (value == null) {
unsetInternalServiceError();
} else {
setInternalServiceError((com.uber.cadence.InternalServiceError)value);
}
break;
case DOMAIN_EXISTS_ERROR:
if (value == null) {
unsetDomainExistsError();
} else {
setDomainExistsError((com.uber.cadence.DomainAlreadyExistsError)value);
}
break;
case SERVICE_BUSY_ERROR:
if (value == null) {
unsetServiceBusyError();
} else {
setServiceBusyError((com.uber.cadence.ServiceBusyError)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case BAD_REQUEST_ERROR:
return getBadRequestError();
case INTERNAL_SERVICE_ERROR:
return getInternalServiceError();
case DOMAIN_EXISTS_ERROR:
return getDomainExistsError();
case SERVICE_BUSY_ERROR:
return getServiceBusyError();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case BAD_REQUEST_ERROR:
return isSetBadRequestError();
case INTERNAL_SERVICE_ERROR:
return isSetInternalServiceError();
case DOMAIN_EXISTS_ERROR:
return isSetDomainExistsError();
case SERVICE_BUSY_ERROR:
return isSetServiceBusyError();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof RegisterDomain_result)
return this.equals((RegisterDomain_result)that);
return false;
}
public boolean equals(RegisterDomain_result that) {
if (that == null)
return false;
boolean this_present_badRequestError = true && this.isSetBadRequestError();
boolean that_present_badRequestError = true && that.isSetBadRequestError();
if (this_present_badRequestError || that_present_badRequestError) {
if (!(this_present_badRequestError && that_present_badRequestError))
return false;
if (!this.badRequestError.equals(that.badRequestError))
return false;
}
boolean this_present_internalServiceError = true && this.isSetInternalServiceError();
boolean that_present_internalServiceError = true && that.isSetInternalServiceError();
if (this_present_internalServiceError || that_present_internalServiceError) {
if (!(this_present_internalServiceError && that_present_internalServiceError))
return false;
if (!this.internalServiceError.equals(that.internalServiceError))
return false;
}
boolean this_present_domainExistsError = true && this.isSetDomainExistsError();
boolean that_present_domainExistsError = true && that.isSetDomainExistsError();
if (this_present_domainExistsError || that_present_domainExistsError) {
if (!(this_present_domainExistsError && that_present_domainExistsError))
return false;
if (!this.domainExistsError.equals(that.domainExistsError))
return false;
}
boolean this_present_serviceBusyError = true && this.isSetServiceBusyError();
boolean that_present_serviceBusyError = true && that.isSetServiceBusyError();
if (this_present_serviceBusyError || that_present_serviceBusyError) {
if (!(this_present_serviceBusyError && that_present_serviceBusyError))
return false;
if (!this.serviceBusyError.equals(that.serviceBusyError))
return false;
}
return true;
}
@Override
public int hashCode() {
List list = new ArrayList();
boolean present_badRequestError = true && (isSetBadRequestError());
list.add(present_badRequestError);
if (present_badRequestError)
list.add(badRequestError);
boolean present_internalServiceError = true && (isSetInternalServiceError());
list.add(present_internalServiceError);
if (present_internalServiceError)
list.add(internalServiceError);
boolean present_domainExistsError = true && (isSetDomainExistsError());
list.add(present_domainExistsError);
if (present_domainExistsError)
list.add(domainExistsError);
boolean present_serviceBusyError = true && (isSetServiceBusyError());
list.add(present_serviceBusyError);
if (present_serviceBusyError)
list.add(serviceBusyError);
return list.hashCode();
}
@Override
public int compareTo(RegisterDomain_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = Boolean.valueOf(isSetBadRequestError()).compareTo(other.isSetBadRequestError());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetBadRequestError()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.badRequestError, other.badRequestError);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetInternalServiceError()).compareTo(other.isSetInternalServiceError());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetInternalServiceError()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.internalServiceError, other.internalServiceError);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetDomainExistsError()).compareTo(other.isSetDomainExistsError());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetDomainExistsError()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.domainExistsError, other.domainExistsError);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetServiceBusyError()).compareTo(other.isSetServiceBusyError());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetServiceBusyError()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceBusyError, other.serviceBusyError);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("RegisterDomain_result(");
boolean first = true;
sb.append("badRequestError:");
if (this.badRequestError == null) {
sb.append("null");
} else {
sb.append(this.badRequestError);
}
first = false;
if (!first) sb.append(", ");
sb.append("internalServiceError:");
if (this.internalServiceError == null) {
sb.append("null");
} else {
sb.append(this.internalServiceError);
}
first = false;
if (!first) sb.append(", ");
sb.append("domainExistsError:");
if (this.domainExistsError == null) {
sb.append("null");
} else {
sb.append(this.domainExistsError);
}
first = false;
if (!first) sb.append(", ");
sb.append("serviceBusyError:");
if (this.serviceBusyError == null) {
sb.append("null");
} else {
sb.append(this.serviceBusyError);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class RegisterDomain_resultStandardSchemeFactory implements SchemeFactory {
public RegisterDomain_resultStandardScheme getScheme() {
return new RegisterDomain_resultStandardScheme();
}
}
private static class RegisterDomain_resultStandardScheme extends StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, RegisterDomain_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // BAD_REQUEST_ERROR
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.badRequestError = new com.uber.cadence.BadRequestError();
struct.badRequestError.read(iprot);
struct.setBadRequestErrorIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // INTERNAL_SERVICE_ERROR
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.internalServiceError = new com.uber.cadence.InternalServiceError();
struct.internalServiceError.read(iprot);
struct.setInternalServiceErrorIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // DOMAIN_EXISTS_ERROR
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.domainExistsError = new com.uber.cadence.DomainAlreadyExistsError();
struct.domainExistsError.read(iprot);
struct.setDomainExistsErrorIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // SERVICE_BUSY_ERROR
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.serviceBusyError = new com.uber.cadence.ServiceBusyError();
struct.serviceBusyError.read(iprot);
struct.setServiceBusyErrorIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, RegisterDomain_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.badRequestError != null) {
oprot.writeFieldBegin(BAD_REQUEST_ERROR_FIELD_DESC);
struct.badRequestError.write(oprot);
oprot.writeFieldEnd();
}
if (struct.internalServiceError != null) {
oprot.writeFieldBegin(INTERNAL_SERVICE_ERROR_FIELD_DESC);
struct.internalServiceError.write(oprot);
oprot.writeFieldEnd();
}
if (struct.domainExistsError != null) {
oprot.writeFieldBegin(DOMAIN_EXISTS_ERROR_FIELD_DESC);
struct.domainExistsError.write(oprot);
oprot.writeFieldEnd();
}
if (struct.serviceBusyError != null) {
oprot.writeFieldBegin(SERVICE_BUSY_ERROR_FIELD_DESC);
struct.serviceBusyError.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class RegisterDomain_resultTupleSchemeFactory implements SchemeFactory {
public RegisterDomain_resultTupleScheme getScheme() {
return new RegisterDomain_resultTupleScheme();
}
}
private static class RegisterDomain_resultTupleScheme extends TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, RegisterDomain_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetBadRequestError()) {
optionals.set(0);
}
if (struct.isSetInternalServiceError()) {
optionals.set(1);
}
if (struct.isSetDomainExistsError()) {
optionals.set(2);
}
if (struct.isSetServiceBusyError()) {
optionals.set(3);
}
oprot.writeBitSet(optionals, 4);
if (struct.isSetBadRequestError()) {
struct.badRequestError.write(oprot);
}
if (struct.isSetInternalServiceError()) {
struct.internalServiceError.write(oprot);
}
if (struct.isSetDomainExistsError()) {
struct.domainExistsError.write(oprot);
}
if (struct.isSetServiceBusyError()) {
struct.serviceBusyError.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, RegisterDomain_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
struct.badRequestError = new com.uber.cadence.BadRequestError();
struct.badRequestError.read(iprot);
struct.setBadRequestErrorIsSet(true);
}
if (incoming.get(1)) {
struct.internalServiceError = new com.uber.cadence.InternalServiceError();
struct.internalServiceError.read(iprot);
struct.setInternalServiceErrorIsSet(true);
}
if (incoming.get(2)) {
struct.domainExistsError = new com.uber.cadence.DomainAlreadyExistsError();
struct.domainExistsError.read(iprot);
struct.setDomainExistsErrorIsSet(true);
}
if (incoming.get(3)) {
struct.serviceBusyError = new com.uber.cadence.ServiceBusyError();
struct.serviceBusyError.read(iprot);
struct.setServiceBusyErrorIsSet(true);
}
}
}
}
public static class DescribeDomain_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DescribeDomain_args");
private static final org.apache.thrift.protocol.TField DESCRIBE_REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("describeRequest", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new DescribeDomain_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new DescribeDomain_argsTupleSchemeFactory());
}
public com.uber.cadence.DescribeDomainRequest describeRequest; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
DESCRIBE_REQUEST((short)1, "describeRequest");
private static final Map