|
36 | 36 | import com.uber.cadence.DomainNotActiveError;
|
37 | 37 | import com.uber.cadence.EntityNotExistsError;
|
38 | 38 | import com.uber.cadence.GetSearchAttributesResponse;
|
| 39 | +import com.uber.cadence.GetTaskListsByDomainRequest; |
| 40 | +import com.uber.cadence.GetTaskListsByDomainResponse; |
39 | 41 | import com.uber.cadence.GetWorkflowExecutionHistoryRequest;
|
40 | 42 | import com.uber.cadence.GetWorkflowExecutionHistoryResponse;
|
41 | 43 | import com.uber.cadence.History;
|
@@ -559,6 +561,51 @@ private void deprecateDomain(DeprecateDomainRequest deprecateRequest) throws TEx
|
559 | 561 | }
|
560 | 562 | }
|
561 | 563 |
|
| 564 | + @Override |
| 565 | + public GetTaskListsByDomainResponse GetTaskListsByDomain( |
| 566 | + GetTaskListsByDomainRequest getTaskListsByDomainRequest) throws TException { |
| 567 | + return measureRemoteCall( |
| 568 | + ServiceMethod.GET_TASK_LISTS_BY_DOMAIN, |
| 569 | + () -> getTaskListsByDomain(getTaskListsByDomainRequest)); |
| 570 | + } |
| 571 | + |
| 572 | + private GetTaskListsByDomainResponse getTaskListsByDomain( |
| 573 | + GetTaskListsByDomainRequest getTaskListsByDomainRequest) throws TException { |
| 574 | + ThriftResponse<WorkflowService.GetTaskListsByDomain_result> response = null; |
| 575 | + try { |
| 576 | + ThriftRequest<WorkflowService.GetTaskListsByDomain_args> request = |
| 577 | + buildThriftRequest( |
| 578 | + "GetTaskListsByDomain", |
| 579 | + new WorkflowService.GetTaskListsByDomain_args(getTaskListsByDomainRequest)); |
| 580 | + response = doRemoteCall(request); |
| 581 | + WorkflowService.GetTaskListsByDomain_result result = |
| 582 | + response.getBody(WorkflowService.GetTaskListsByDomain_result.class); |
| 583 | + if (response.getResponseCode() == ResponseCode.OK) { |
| 584 | + return result.getSuccess(); |
| 585 | + } |
| 586 | + if (result.isSetBadRequestError()) { |
| 587 | + throw result.getBadRequestError(); |
| 588 | + } |
| 589 | + if (result.isSetEntityNotExistError()) { |
| 590 | + throw result.getEntityNotExistError(); |
| 591 | + } |
| 592 | + if (result.isSetLimitExceededError()) { |
| 593 | + throw result.getLimitExceededError(); |
| 594 | + } |
| 595 | + if (result.isSetServiceBusyError()) { |
| 596 | + throw result.getServiceBusyError(); |
| 597 | + } |
| 598 | + if (result.isSetClientVersionNotSupportedError()) { |
| 599 | + throw result.getClientVersionNotSupportedError(); |
| 600 | + } |
| 601 | + throw new TException("GetTaskListsByDomain failed with unknown error:" + result); |
| 602 | + } finally { |
| 603 | + if (response != null) { |
| 604 | + response.release(); |
| 605 | + } |
| 606 | + } |
| 607 | + } |
| 608 | + |
562 | 609 | @Override
|
563 | 610 | public StartWorkflowExecutionResponse StartWorkflowExecution(
|
564 | 611 | StartWorkflowExecutionRequest request) throws TException {
|
@@ -2602,4 +2649,11 @@ public void DeprecateDomain(
|
2602 | 2649 | throws TException {
|
2603 | 2650 | throw new UnsupportedOperationException("not implemented");
|
2604 | 2651 | }
|
| 2652 | + |
| 2653 | + @Override |
| 2654 | + public void GetTaskListsByDomain( |
| 2655 | + GetTaskListsByDomainRequest request, AsyncMethodCallback resultHandler) |
| 2656 | + throws org.apache.thrift.TException { |
| 2657 | + throw new UnsupportedOperationException("not implemented"); |
| 2658 | + } |
2605 | 2659 | }
|
0 commit comments