com.xiaomi.infra.galaxy.emq.thrift.QueueService Maven / Gradle / Ivy
The newest version!
/**
* Autogenerated by Thrift Compiler (0.9.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.xiaomi.infra.galaxy.emq.thrift;
import libthrift091.scheme.IScheme;
import libthrift091.scheme.SchemeFactory;
import libthrift091.scheme.StandardScheme;
import libthrift091.scheme.TupleScheme;
import libthrift091.protocol.TTupleProtocol;
import libthrift091.protocol.TProtocolException;
import libthrift091.EncodingUtils;
import libthrift091.TException;
import libthrift091.async.AsyncMethodCallback;
import libthrift091.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.2)", date = "2017-9-13")
public class QueueService {
public interface Iface extends com.xiaomi.infra.galaxy.emq.thrift.EMQBaseService.Iface {
/**
* Create queue;
*
*
* @param request
*/
public CreateQueueResponse createQueue(CreateQueueRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* Delete queue;
*
*
* @param request
*/
public void deleteQueue(DeleteQueueRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* Purge queue;
*
*
* @param request
*/
public void purgeQueue(PurgeQueueRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* Set queue attribute;
*
*
* @param request
*/
public SetQueueAttributesResponse setQueueAttribute(SetQueueAttributesRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* Set queue quota;
*
*
* @param request
*/
public SetQueueQuotaResponse setQueueQuota(SetQueueQuotaRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* Get queue info, include QueueAttribute, QueueState and QueueQuota;
*
*
* @param request
*/
public GetQueueInfoResponse getQueueInfo(GetQueueInfoRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* List queue with queueNamePrefix;
*
*
* @param request
*/
public ListQueueResponse listQueue(ListQueueRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* Remove queue redrive policy;
*
*
* @param request
*/
public SetQueueRedrivePolicyResponse setQueueRedrivePolicy(SetQueueRedrivePolicyRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* Remove queue redrive policy;
*
*
* @param request
*/
public void removeQueueRedrivePolicy(RemoveQueueRedrivePolicyRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* Set permission for developer
* FULL_CONTROL required to use this method
*
*
* @param request
*/
public void setPermission(SetPermissionRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* Revoke permission for developer
* FULL_CONTROL required to use this method
*
* @param request
*/
public void revokePermission(RevokePermissionRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* query permission for developer using this method
* no permission required to use this method
*
* @param request
*/
public QueryPermissionResponse queryPermission(QueryPermissionRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* List permission for developer
* ADMIN_QUEUE required to use this method
*
* @param request
*/
public QueryPermissionForIdResponse queryPermissionForId(QueryPermissionForIdRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* list permissions for all users of the queue
* ADMIN_QUEUE required to use this method
*
*
* @param request
*/
public ListPermissionsResponse listPermissions(ListPermissionsRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* create tag for queue
* ADMIN_QUEUE required to use this method
*
*
* @param request
*/
public CreateTagResponse createTag(CreateTagRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* delete tag for queue
* ADMIN_QUEUE required to use this method
*
*
* @param request
*/
public void deleteTag(DeleteTagRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* get info of tag
* ADMIN_QUEUE required to use this method
*
*
* @param request
*/
public GetTagInfoResponse getTagInfo(GetTagInfoRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* list names of all tag of queue
* ADMIN_QUEUE required to use this method
*
*
* @param request
*/
public ListTagResponse listTag(ListTagRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* query metrics
* FULL_CONTROL required to use this method
*
*
* @param request
*/
public TimeSeriesData queryMetric(QueryMetricRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* query privileged queues
* No permission required
*
*
* @param request
*/
public QueryPrivilegedQueueResponse queryPrivilegedQueue(QueryPrivilegedQueueRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
public VerifyEMQAdminResponse verifyEMQAdmin() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
public VerifyEMQAdminRoleResponse verifyEMQAdminRole(VerifyEMQAdminRoleRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
/**
* copy queues using queues meta
*
*
* @param request
*/
public void copyQueue(CopyQueueRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
public GetQueueMetaResponse getQueueMeta(String queueName) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException;
}
public interface AsyncIface extends com.xiaomi.infra.galaxy.emq.thrift.EMQBaseService .AsyncIface {
public void createQueue(CreateQueueRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void deleteQueue(DeleteQueueRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void purgeQueue(PurgeQueueRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void setQueueAttribute(SetQueueAttributesRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void setQueueQuota(SetQueueQuotaRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void getQueueInfo(GetQueueInfoRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void listQueue(ListQueueRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void setQueueRedrivePolicy(SetQueueRedrivePolicyRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void removeQueueRedrivePolicy(RemoveQueueRedrivePolicyRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void setPermission(SetPermissionRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void revokePermission(RevokePermissionRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void queryPermission(QueryPermissionRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void queryPermissionForId(QueryPermissionForIdRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void listPermissions(ListPermissionsRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void createTag(CreateTagRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void deleteTag(DeleteTagRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void getTagInfo(GetTagInfoRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void listTag(ListTagRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void queryMetric(QueryMetricRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void queryPrivilegedQueue(QueryPrivilegedQueueRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void verifyEMQAdmin(libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void verifyEMQAdminRole(VerifyEMQAdminRoleRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void copyQueue(CopyQueueRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void getQueueMeta(String queueName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
}
public static class Client extends com.xiaomi.infra.galaxy.emq.thrift.EMQBaseService.Client implements Iface {
public static class Factory implements libthrift091.TServiceClientFactory {
public Factory() {}
public Client getClient(libthrift091.protocol.TProtocol prot) {
return new Client(prot);
}
public Client getClient(libthrift091.protocol.TProtocol iprot, libthrift091.protocol.TProtocol oprot) {
return new Client(iprot, oprot);
}
}
public Client(libthrift091.protocol.TProtocol prot)
{
super(prot, prot);
}
public Client(libthrift091.protocol.TProtocol iprot, libthrift091.protocol.TProtocol oprot) {
super(iprot, oprot);
}
public CreateQueueResponse createQueue(CreateQueueRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_createQueue(request);
return recv_createQueue();
}
public void send_createQueue(CreateQueueRequest request) throws libthrift091.TException
{
createQueue_args args = new createQueue_args();
args.setRequest(request);
sendBase("createQueue", args);
}
public CreateQueueResponse recv_createQueue() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
createQueue_result result = new createQueue_result();
receiveBase(result, "createQueue");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "createQueue failed: unknown result");
}
public void deleteQueue(DeleteQueueRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_deleteQueue(request);
recv_deleteQueue();
}
public void send_deleteQueue(DeleteQueueRequest request) throws libthrift091.TException
{
deleteQueue_args args = new deleteQueue_args();
args.setRequest(request);
sendBase("deleteQueue", args);
}
public void recv_deleteQueue() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
deleteQueue_result result = new deleteQueue_result();
receiveBase(result, "deleteQueue");
if (result.e != null) {
throw result.e;
}
return;
}
public void purgeQueue(PurgeQueueRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_purgeQueue(request);
recv_purgeQueue();
}
public void send_purgeQueue(PurgeQueueRequest request) throws libthrift091.TException
{
purgeQueue_args args = new purgeQueue_args();
args.setRequest(request);
sendBase("purgeQueue", args);
}
public void recv_purgeQueue() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
purgeQueue_result result = new purgeQueue_result();
receiveBase(result, "purgeQueue");
if (result.e != null) {
throw result.e;
}
return;
}
public SetQueueAttributesResponse setQueueAttribute(SetQueueAttributesRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_setQueueAttribute(request);
return recv_setQueueAttribute();
}
public void send_setQueueAttribute(SetQueueAttributesRequest request) throws libthrift091.TException
{
setQueueAttribute_args args = new setQueueAttribute_args();
args.setRequest(request);
sendBase("setQueueAttribute", args);
}
public SetQueueAttributesResponse recv_setQueueAttribute() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
setQueueAttribute_result result = new setQueueAttribute_result();
receiveBase(result, "setQueueAttribute");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "setQueueAttribute failed: unknown result");
}
public SetQueueQuotaResponse setQueueQuota(SetQueueQuotaRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_setQueueQuota(request);
return recv_setQueueQuota();
}
public void send_setQueueQuota(SetQueueQuotaRequest request) throws libthrift091.TException
{
setQueueQuota_args args = new setQueueQuota_args();
args.setRequest(request);
sendBase("setQueueQuota", args);
}
public SetQueueQuotaResponse recv_setQueueQuota() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
setQueueQuota_result result = new setQueueQuota_result();
receiveBase(result, "setQueueQuota");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "setQueueQuota failed: unknown result");
}
public GetQueueInfoResponse getQueueInfo(GetQueueInfoRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_getQueueInfo(request);
return recv_getQueueInfo();
}
public void send_getQueueInfo(GetQueueInfoRequest request) throws libthrift091.TException
{
getQueueInfo_args args = new getQueueInfo_args();
args.setRequest(request);
sendBase("getQueueInfo", args);
}
public GetQueueInfoResponse recv_getQueueInfo() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
getQueueInfo_result result = new getQueueInfo_result();
receiveBase(result, "getQueueInfo");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "getQueueInfo failed: unknown result");
}
public ListQueueResponse listQueue(ListQueueRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_listQueue(request);
return recv_listQueue();
}
public void send_listQueue(ListQueueRequest request) throws libthrift091.TException
{
listQueue_args args = new listQueue_args();
args.setRequest(request);
sendBase("listQueue", args);
}
public ListQueueResponse recv_listQueue() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
listQueue_result result = new listQueue_result();
receiveBase(result, "listQueue");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "listQueue failed: unknown result");
}
public SetQueueRedrivePolicyResponse setQueueRedrivePolicy(SetQueueRedrivePolicyRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_setQueueRedrivePolicy(request);
return recv_setQueueRedrivePolicy();
}
public void send_setQueueRedrivePolicy(SetQueueRedrivePolicyRequest request) throws libthrift091.TException
{
setQueueRedrivePolicy_args args = new setQueueRedrivePolicy_args();
args.setRequest(request);
sendBase("setQueueRedrivePolicy", args);
}
public SetQueueRedrivePolicyResponse recv_setQueueRedrivePolicy() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
setQueueRedrivePolicy_result result = new setQueueRedrivePolicy_result();
receiveBase(result, "setQueueRedrivePolicy");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "setQueueRedrivePolicy failed: unknown result");
}
public void removeQueueRedrivePolicy(RemoveQueueRedrivePolicyRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_removeQueueRedrivePolicy(request);
recv_removeQueueRedrivePolicy();
}
public void send_removeQueueRedrivePolicy(RemoveQueueRedrivePolicyRequest request) throws libthrift091.TException
{
removeQueueRedrivePolicy_args args = new removeQueueRedrivePolicy_args();
args.setRequest(request);
sendBase("removeQueueRedrivePolicy", args);
}
public void recv_removeQueueRedrivePolicy() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
removeQueueRedrivePolicy_result result = new removeQueueRedrivePolicy_result();
receiveBase(result, "removeQueueRedrivePolicy");
if (result.e != null) {
throw result.e;
}
return;
}
public void setPermission(SetPermissionRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_setPermission(request);
recv_setPermission();
}
public void send_setPermission(SetPermissionRequest request) throws libthrift091.TException
{
setPermission_args args = new setPermission_args();
args.setRequest(request);
sendBase("setPermission", args);
}
public void recv_setPermission() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
setPermission_result result = new setPermission_result();
receiveBase(result, "setPermission");
if (result.e != null) {
throw result.e;
}
return;
}
public void revokePermission(RevokePermissionRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_revokePermission(request);
recv_revokePermission();
}
public void send_revokePermission(RevokePermissionRequest request) throws libthrift091.TException
{
revokePermission_args args = new revokePermission_args();
args.setRequest(request);
sendBase("revokePermission", args);
}
public void recv_revokePermission() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
revokePermission_result result = new revokePermission_result();
receiveBase(result, "revokePermission");
if (result.e != null) {
throw result.e;
}
return;
}
public QueryPermissionResponse queryPermission(QueryPermissionRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_queryPermission(request);
return recv_queryPermission();
}
public void send_queryPermission(QueryPermissionRequest request) throws libthrift091.TException
{
queryPermission_args args = new queryPermission_args();
args.setRequest(request);
sendBase("queryPermission", args);
}
public QueryPermissionResponse recv_queryPermission() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
queryPermission_result result = new queryPermission_result();
receiveBase(result, "queryPermission");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "queryPermission failed: unknown result");
}
public QueryPermissionForIdResponse queryPermissionForId(QueryPermissionForIdRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_queryPermissionForId(request);
return recv_queryPermissionForId();
}
public void send_queryPermissionForId(QueryPermissionForIdRequest request) throws libthrift091.TException
{
queryPermissionForId_args args = new queryPermissionForId_args();
args.setRequest(request);
sendBase("queryPermissionForId", args);
}
public QueryPermissionForIdResponse recv_queryPermissionForId() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
queryPermissionForId_result result = new queryPermissionForId_result();
receiveBase(result, "queryPermissionForId");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "queryPermissionForId failed: unknown result");
}
public ListPermissionsResponse listPermissions(ListPermissionsRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_listPermissions(request);
return recv_listPermissions();
}
public void send_listPermissions(ListPermissionsRequest request) throws libthrift091.TException
{
listPermissions_args args = new listPermissions_args();
args.setRequest(request);
sendBase("listPermissions", args);
}
public ListPermissionsResponse recv_listPermissions() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
listPermissions_result result = new listPermissions_result();
receiveBase(result, "listPermissions");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "listPermissions failed: unknown result");
}
public CreateTagResponse createTag(CreateTagRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_createTag(request);
return recv_createTag();
}
public void send_createTag(CreateTagRequest request) throws libthrift091.TException
{
createTag_args args = new createTag_args();
args.setRequest(request);
sendBase("createTag", args);
}
public CreateTagResponse recv_createTag() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
createTag_result result = new createTag_result();
receiveBase(result, "createTag");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "createTag failed: unknown result");
}
public void deleteTag(DeleteTagRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_deleteTag(request);
recv_deleteTag();
}
public void send_deleteTag(DeleteTagRequest request) throws libthrift091.TException
{
deleteTag_args args = new deleteTag_args();
args.setRequest(request);
sendBase("deleteTag", args);
}
public void recv_deleteTag() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
deleteTag_result result = new deleteTag_result();
receiveBase(result, "deleteTag");
if (result.e != null) {
throw result.e;
}
return;
}
public GetTagInfoResponse getTagInfo(GetTagInfoRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_getTagInfo(request);
return recv_getTagInfo();
}
public void send_getTagInfo(GetTagInfoRequest request) throws libthrift091.TException
{
getTagInfo_args args = new getTagInfo_args();
args.setRequest(request);
sendBase("getTagInfo", args);
}
public GetTagInfoResponse recv_getTagInfo() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
getTagInfo_result result = new getTagInfo_result();
receiveBase(result, "getTagInfo");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "getTagInfo failed: unknown result");
}
public ListTagResponse listTag(ListTagRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_listTag(request);
return recv_listTag();
}
public void send_listTag(ListTagRequest request) throws libthrift091.TException
{
listTag_args args = new listTag_args();
args.setRequest(request);
sendBase("listTag", args);
}
public ListTagResponse recv_listTag() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
listTag_result result = new listTag_result();
receiveBase(result, "listTag");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "listTag failed: unknown result");
}
public TimeSeriesData queryMetric(QueryMetricRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_queryMetric(request);
return recv_queryMetric();
}
public void send_queryMetric(QueryMetricRequest request) throws libthrift091.TException
{
queryMetric_args args = new queryMetric_args();
args.setRequest(request);
sendBase("queryMetric", args);
}
public TimeSeriesData recv_queryMetric() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
queryMetric_result result = new queryMetric_result();
receiveBase(result, "queryMetric");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "queryMetric failed: unknown result");
}
public QueryPrivilegedQueueResponse queryPrivilegedQueue(QueryPrivilegedQueueRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_queryPrivilegedQueue(request);
return recv_queryPrivilegedQueue();
}
public void send_queryPrivilegedQueue(QueryPrivilegedQueueRequest request) throws libthrift091.TException
{
queryPrivilegedQueue_args args = new queryPrivilegedQueue_args();
args.setRequest(request);
sendBase("queryPrivilegedQueue", args);
}
public QueryPrivilegedQueueResponse recv_queryPrivilegedQueue() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
queryPrivilegedQueue_result result = new queryPrivilegedQueue_result();
receiveBase(result, "queryPrivilegedQueue");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "queryPrivilegedQueue failed: unknown result");
}
public VerifyEMQAdminResponse verifyEMQAdmin() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_verifyEMQAdmin();
return recv_verifyEMQAdmin();
}
public void send_verifyEMQAdmin() throws libthrift091.TException
{
verifyEMQAdmin_args args = new verifyEMQAdmin_args();
sendBase("verifyEMQAdmin", args);
}
public VerifyEMQAdminResponse recv_verifyEMQAdmin() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
verifyEMQAdmin_result result = new verifyEMQAdmin_result();
receiveBase(result, "verifyEMQAdmin");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "verifyEMQAdmin failed: unknown result");
}
public VerifyEMQAdminRoleResponse verifyEMQAdminRole(VerifyEMQAdminRoleRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_verifyEMQAdminRole(request);
return recv_verifyEMQAdminRole();
}
public void send_verifyEMQAdminRole(VerifyEMQAdminRoleRequest request) throws libthrift091.TException
{
verifyEMQAdminRole_args args = new verifyEMQAdminRole_args();
args.setRequest(request);
sendBase("verifyEMQAdminRole", args);
}
public VerifyEMQAdminRoleResponse recv_verifyEMQAdminRole() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
verifyEMQAdminRole_result result = new verifyEMQAdminRole_result();
receiveBase(result, "verifyEMQAdminRole");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "verifyEMQAdminRole failed: unknown result");
}
public void copyQueue(CopyQueueRequest request) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_copyQueue(request);
recv_copyQueue();
}
public void send_copyQueue(CopyQueueRequest request) throws libthrift091.TException
{
copyQueue_args args = new copyQueue_args();
args.setRequest(request);
sendBase("copyQueue", args);
}
public void recv_copyQueue() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
copyQueue_result result = new copyQueue_result();
receiveBase(result, "copyQueue");
if (result.e != null) {
throw result.e;
}
return;
}
public GetQueueMetaResponse getQueueMeta(String queueName) throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
send_getQueueMeta(queueName);
return recv_getQueueMeta();
}
public void send_getQueueMeta(String queueName) throws libthrift091.TException
{
getQueueMeta_args args = new getQueueMeta_args();
args.setQueueName(queueName);
sendBase("getQueueMeta", args);
}
public GetQueueMetaResponse recv_getQueueMeta() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException
{
getQueueMeta_result result = new getQueueMeta_result();
receiveBase(result, "getQueueMeta");
if (result.isSetSuccess()) {
return result.success;
}
if (result.e != null) {
throw result.e;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "getQueueMeta failed: unknown result");
}
}
public static class AsyncClient extends com.xiaomi.infra.galaxy.emq.thrift.EMQBaseService.AsyncClient implements AsyncIface {
public static class Factory implements libthrift091.async.TAsyncClientFactory {
private libthrift091.async.TAsyncClientManager clientManager;
private libthrift091.protocol.TProtocolFactory protocolFactory;
public Factory(libthrift091.async.TAsyncClientManager clientManager, libthrift091.protocol.TProtocolFactory protocolFactory) {
this.clientManager = clientManager;
this.protocolFactory = protocolFactory;
}
public AsyncClient getAsyncClient(libthrift091.transport.TNonblockingTransport transport) {
return new AsyncClient(protocolFactory, clientManager, transport);
}
}
public AsyncClient(libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.async.TAsyncClientManager clientManager, libthrift091.transport.TNonblockingTransport transport) {
super(protocolFactory, clientManager, transport);
}
public void createQueue(CreateQueueRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
createQueue_call method_call = new createQueue_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class createQueue_call extends libthrift091.async.TAsyncMethodCall {
private CreateQueueRequest request;
public createQueue_call(CreateQueueRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("createQueue", libthrift091.protocol.TMessageType.CALL, 0));
createQueue_args args = new createQueue_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public CreateQueueResponse getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_createQueue();
}
}
public void deleteQueue(DeleteQueueRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
deleteQueue_call method_call = new deleteQueue_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class deleteQueue_call extends libthrift091.async.TAsyncMethodCall {
private DeleteQueueRequest request;
public deleteQueue_call(DeleteQueueRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("deleteQueue", libthrift091.protocol.TMessageType.CALL, 0));
deleteQueue_args args = new deleteQueue_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_deleteQueue();
}
}
public void purgeQueue(PurgeQueueRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
purgeQueue_call method_call = new purgeQueue_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class purgeQueue_call extends libthrift091.async.TAsyncMethodCall {
private PurgeQueueRequest request;
public purgeQueue_call(PurgeQueueRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("purgeQueue", libthrift091.protocol.TMessageType.CALL, 0));
purgeQueue_args args = new purgeQueue_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_purgeQueue();
}
}
public void setQueueAttribute(SetQueueAttributesRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
setQueueAttribute_call method_call = new setQueueAttribute_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class setQueueAttribute_call extends libthrift091.async.TAsyncMethodCall {
private SetQueueAttributesRequest request;
public setQueueAttribute_call(SetQueueAttributesRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("setQueueAttribute", libthrift091.protocol.TMessageType.CALL, 0));
setQueueAttribute_args args = new setQueueAttribute_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public SetQueueAttributesResponse getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_setQueueAttribute();
}
}
public void setQueueQuota(SetQueueQuotaRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
setQueueQuota_call method_call = new setQueueQuota_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class setQueueQuota_call extends libthrift091.async.TAsyncMethodCall {
private SetQueueQuotaRequest request;
public setQueueQuota_call(SetQueueQuotaRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("setQueueQuota", libthrift091.protocol.TMessageType.CALL, 0));
setQueueQuota_args args = new setQueueQuota_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public SetQueueQuotaResponse getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_setQueueQuota();
}
}
public void getQueueInfo(GetQueueInfoRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
getQueueInfo_call method_call = new getQueueInfo_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getQueueInfo_call extends libthrift091.async.TAsyncMethodCall {
private GetQueueInfoRequest request;
public getQueueInfo_call(GetQueueInfoRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("getQueueInfo", libthrift091.protocol.TMessageType.CALL, 0));
getQueueInfo_args args = new getQueueInfo_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public GetQueueInfoResponse getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_getQueueInfo();
}
}
public void listQueue(ListQueueRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
listQueue_call method_call = new listQueue_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class listQueue_call extends libthrift091.async.TAsyncMethodCall {
private ListQueueRequest request;
public listQueue_call(ListQueueRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("listQueue", libthrift091.protocol.TMessageType.CALL, 0));
listQueue_args args = new listQueue_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public ListQueueResponse getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_listQueue();
}
}
public void setQueueRedrivePolicy(SetQueueRedrivePolicyRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
setQueueRedrivePolicy_call method_call = new setQueueRedrivePolicy_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class setQueueRedrivePolicy_call extends libthrift091.async.TAsyncMethodCall {
private SetQueueRedrivePolicyRequest request;
public setQueueRedrivePolicy_call(SetQueueRedrivePolicyRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("setQueueRedrivePolicy", libthrift091.protocol.TMessageType.CALL, 0));
setQueueRedrivePolicy_args args = new setQueueRedrivePolicy_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public SetQueueRedrivePolicyResponse getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_setQueueRedrivePolicy();
}
}
public void removeQueueRedrivePolicy(RemoveQueueRedrivePolicyRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
removeQueueRedrivePolicy_call method_call = new removeQueueRedrivePolicy_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class removeQueueRedrivePolicy_call extends libthrift091.async.TAsyncMethodCall {
private RemoveQueueRedrivePolicyRequest request;
public removeQueueRedrivePolicy_call(RemoveQueueRedrivePolicyRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("removeQueueRedrivePolicy", libthrift091.protocol.TMessageType.CALL, 0));
removeQueueRedrivePolicy_args args = new removeQueueRedrivePolicy_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_removeQueueRedrivePolicy();
}
}
public void setPermission(SetPermissionRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
setPermission_call method_call = new setPermission_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class setPermission_call extends libthrift091.async.TAsyncMethodCall {
private SetPermissionRequest request;
public setPermission_call(SetPermissionRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("setPermission", libthrift091.protocol.TMessageType.CALL, 0));
setPermission_args args = new setPermission_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_setPermission();
}
}
public void revokePermission(RevokePermissionRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
revokePermission_call method_call = new revokePermission_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class revokePermission_call extends libthrift091.async.TAsyncMethodCall {
private RevokePermissionRequest request;
public revokePermission_call(RevokePermissionRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("revokePermission", libthrift091.protocol.TMessageType.CALL, 0));
revokePermission_args args = new revokePermission_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_revokePermission();
}
}
public void queryPermission(QueryPermissionRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
queryPermission_call method_call = new queryPermission_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class queryPermission_call extends libthrift091.async.TAsyncMethodCall {
private QueryPermissionRequest request;
public queryPermission_call(QueryPermissionRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("queryPermission", libthrift091.protocol.TMessageType.CALL, 0));
queryPermission_args args = new queryPermission_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public QueryPermissionResponse getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_queryPermission();
}
}
public void queryPermissionForId(QueryPermissionForIdRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
queryPermissionForId_call method_call = new queryPermissionForId_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class queryPermissionForId_call extends libthrift091.async.TAsyncMethodCall {
private QueryPermissionForIdRequest request;
public queryPermissionForId_call(QueryPermissionForIdRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("queryPermissionForId", libthrift091.protocol.TMessageType.CALL, 0));
queryPermissionForId_args args = new queryPermissionForId_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public QueryPermissionForIdResponse getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_queryPermissionForId();
}
}
public void listPermissions(ListPermissionsRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
listPermissions_call method_call = new listPermissions_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class listPermissions_call extends libthrift091.async.TAsyncMethodCall {
private ListPermissionsRequest request;
public listPermissions_call(ListPermissionsRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("listPermissions", libthrift091.protocol.TMessageType.CALL, 0));
listPermissions_args args = new listPermissions_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public ListPermissionsResponse getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_listPermissions();
}
}
public void createTag(CreateTagRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
createTag_call method_call = new createTag_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class createTag_call extends libthrift091.async.TAsyncMethodCall {
private CreateTagRequest request;
public createTag_call(CreateTagRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("createTag", libthrift091.protocol.TMessageType.CALL, 0));
createTag_args args = new createTag_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public CreateTagResponse getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_createTag();
}
}
public void deleteTag(DeleteTagRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
deleteTag_call method_call = new deleteTag_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class deleteTag_call extends libthrift091.async.TAsyncMethodCall {
private DeleteTagRequest request;
public deleteTag_call(DeleteTagRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("deleteTag", libthrift091.protocol.TMessageType.CALL, 0));
deleteTag_args args = new deleteTag_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_deleteTag();
}
}
public void getTagInfo(GetTagInfoRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
getTagInfo_call method_call = new getTagInfo_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getTagInfo_call extends libthrift091.async.TAsyncMethodCall {
private GetTagInfoRequest request;
public getTagInfo_call(GetTagInfoRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("getTagInfo", libthrift091.protocol.TMessageType.CALL, 0));
getTagInfo_args args = new getTagInfo_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public GetTagInfoResponse getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_getTagInfo();
}
}
public void listTag(ListTagRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
listTag_call method_call = new listTag_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class listTag_call extends libthrift091.async.TAsyncMethodCall {
private ListTagRequest request;
public listTag_call(ListTagRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("listTag", libthrift091.protocol.TMessageType.CALL, 0));
listTag_args args = new listTag_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public ListTagResponse getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_listTag();
}
}
public void queryMetric(QueryMetricRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
queryMetric_call method_call = new queryMetric_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class queryMetric_call extends libthrift091.async.TAsyncMethodCall {
private QueryMetricRequest request;
public queryMetric_call(QueryMetricRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("queryMetric", libthrift091.protocol.TMessageType.CALL, 0));
queryMetric_args args = new queryMetric_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public TimeSeriesData getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_queryMetric();
}
}
public void queryPrivilegedQueue(QueryPrivilegedQueueRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
queryPrivilegedQueue_call method_call = new queryPrivilegedQueue_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class queryPrivilegedQueue_call extends libthrift091.async.TAsyncMethodCall {
private QueryPrivilegedQueueRequest request;
public queryPrivilegedQueue_call(QueryPrivilegedQueueRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("queryPrivilegedQueue", libthrift091.protocol.TMessageType.CALL, 0));
queryPrivilegedQueue_args args = new queryPrivilegedQueue_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public QueryPrivilegedQueueResponse getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_queryPrivilegedQueue();
}
}
public void verifyEMQAdmin(libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
verifyEMQAdmin_call method_call = new verifyEMQAdmin_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class verifyEMQAdmin_call extends libthrift091.async.TAsyncMethodCall {
public verifyEMQAdmin_call(libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("verifyEMQAdmin", libthrift091.protocol.TMessageType.CALL, 0));
verifyEMQAdmin_args args = new verifyEMQAdmin_args();
args.write(prot);
prot.writeMessageEnd();
}
public VerifyEMQAdminResponse getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_verifyEMQAdmin();
}
}
public void verifyEMQAdminRole(VerifyEMQAdminRoleRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
verifyEMQAdminRole_call method_call = new verifyEMQAdminRole_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class verifyEMQAdminRole_call extends libthrift091.async.TAsyncMethodCall {
private VerifyEMQAdminRoleRequest request;
public verifyEMQAdminRole_call(VerifyEMQAdminRoleRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("verifyEMQAdminRole", libthrift091.protocol.TMessageType.CALL, 0));
verifyEMQAdminRole_args args = new verifyEMQAdminRole_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public VerifyEMQAdminRoleResponse getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_verifyEMQAdminRole();
}
}
public void copyQueue(CopyQueueRequest request, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
copyQueue_call method_call = new copyQueue_call(request, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class copyQueue_call extends libthrift091.async.TAsyncMethodCall {
private CopyQueueRequest request;
public copyQueue_call(CopyQueueRequest request, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.request = request;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("copyQueue", libthrift091.protocol.TMessageType.CALL, 0));
copyQueue_args args = new copyQueue_args();
args.setRequest(request);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_copyQueue();
}
}
public void getQueueMeta(String queueName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
getQueueMeta_call method_call = new getQueueMeta_call(queueName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getQueueMeta_call extends libthrift091.async.TAsyncMethodCall {
private String queueName;
public getQueueMeta_call(String queueName, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.queueName = queueName;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("getQueueMeta", libthrift091.protocol.TMessageType.CALL, 0));
getQueueMeta_args args = new getQueueMeta_args();
args.setQueueName(queueName);
args.write(prot);
prot.writeMessageEnd();
}
public GetQueueMetaResponse getResult() throws com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_getQueueMeta();
}
}
}
public static class Processor extends com.xiaomi.infra.galaxy.emq.thrift.EMQBaseService.Processor implements libthrift091.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("createQueue", new createQueue());
processMap.put("deleteQueue", new deleteQueue());
processMap.put("purgeQueue", new purgeQueue());
processMap.put("setQueueAttribute", new setQueueAttribute());
processMap.put("setQueueQuota", new setQueueQuota());
processMap.put("getQueueInfo", new getQueueInfo());
processMap.put("listQueue", new listQueue());
processMap.put("setQueueRedrivePolicy", new setQueueRedrivePolicy());
processMap.put("removeQueueRedrivePolicy", new removeQueueRedrivePolicy());
processMap.put("setPermission", new setPermission());
processMap.put("revokePermission", new revokePermission());
processMap.put("queryPermission", new queryPermission());
processMap.put("queryPermissionForId", new queryPermissionForId());
processMap.put("listPermissions", new listPermissions());
processMap.put("createTag", new createTag());
processMap.put("deleteTag", new deleteTag());
processMap.put("getTagInfo", new getTagInfo());
processMap.put("listTag", new listTag());
processMap.put("queryMetric", new queryMetric());
processMap.put("queryPrivilegedQueue", new queryPrivilegedQueue());
processMap.put("verifyEMQAdmin", new verifyEMQAdmin());
processMap.put("verifyEMQAdminRole", new verifyEMQAdminRole());
processMap.put("copyQueue", new copyQueue());
processMap.put("getQueueMeta", new getQueueMeta());
return processMap;
}
public static class createQueue extends libthrift091.ProcessFunction {
public createQueue() {
super("createQueue");
}
public createQueue_args getEmptyArgsInstance() {
return new createQueue_args();
}
protected boolean isOneway() {
return false;
}
public createQueue_result getResult(I iface, createQueue_args args) throws libthrift091.TException {
createQueue_result result = new createQueue_result();
try {
result.success = iface.createQueue(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class deleteQueue extends libthrift091.ProcessFunction {
public deleteQueue() {
super("deleteQueue");
}
public deleteQueue_args getEmptyArgsInstance() {
return new deleteQueue_args();
}
protected boolean isOneway() {
return false;
}
public deleteQueue_result getResult(I iface, deleteQueue_args args) throws libthrift091.TException {
deleteQueue_result result = new deleteQueue_result();
try {
iface.deleteQueue(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class purgeQueue extends libthrift091.ProcessFunction {
public purgeQueue() {
super("purgeQueue");
}
public purgeQueue_args getEmptyArgsInstance() {
return new purgeQueue_args();
}
protected boolean isOneway() {
return false;
}
public purgeQueue_result getResult(I iface, purgeQueue_args args) throws libthrift091.TException {
purgeQueue_result result = new purgeQueue_result();
try {
iface.purgeQueue(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class setQueueAttribute extends libthrift091.ProcessFunction {
public setQueueAttribute() {
super("setQueueAttribute");
}
public setQueueAttribute_args getEmptyArgsInstance() {
return new setQueueAttribute_args();
}
protected boolean isOneway() {
return false;
}
public setQueueAttribute_result getResult(I iface, setQueueAttribute_args args) throws libthrift091.TException {
setQueueAttribute_result result = new setQueueAttribute_result();
try {
result.success = iface.setQueueAttribute(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class setQueueQuota extends libthrift091.ProcessFunction {
public setQueueQuota() {
super("setQueueQuota");
}
public setQueueQuota_args getEmptyArgsInstance() {
return new setQueueQuota_args();
}
protected boolean isOneway() {
return false;
}
public setQueueQuota_result getResult(I iface, setQueueQuota_args args) throws libthrift091.TException {
setQueueQuota_result result = new setQueueQuota_result();
try {
result.success = iface.setQueueQuota(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class getQueueInfo extends libthrift091.ProcessFunction {
public getQueueInfo() {
super("getQueueInfo");
}
public getQueueInfo_args getEmptyArgsInstance() {
return new getQueueInfo_args();
}
protected boolean isOneway() {
return false;
}
public getQueueInfo_result getResult(I iface, getQueueInfo_args args) throws libthrift091.TException {
getQueueInfo_result result = new getQueueInfo_result();
try {
result.success = iface.getQueueInfo(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class listQueue extends libthrift091.ProcessFunction {
public listQueue() {
super("listQueue");
}
public listQueue_args getEmptyArgsInstance() {
return new listQueue_args();
}
protected boolean isOneway() {
return false;
}
public listQueue_result getResult(I iface, listQueue_args args) throws libthrift091.TException {
listQueue_result result = new listQueue_result();
try {
result.success = iface.listQueue(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class setQueueRedrivePolicy extends libthrift091.ProcessFunction {
public setQueueRedrivePolicy() {
super("setQueueRedrivePolicy");
}
public setQueueRedrivePolicy_args getEmptyArgsInstance() {
return new setQueueRedrivePolicy_args();
}
protected boolean isOneway() {
return false;
}
public setQueueRedrivePolicy_result getResult(I iface, setQueueRedrivePolicy_args args) throws libthrift091.TException {
setQueueRedrivePolicy_result result = new setQueueRedrivePolicy_result();
try {
result.success = iface.setQueueRedrivePolicy(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class removeQueueRedrivePolicy extends libthrift091.ProcessFunction {
public removeQueueRedrivePolicy() {
super("removeQueueRedrivePolicy");
}
public removeQueueRedrivePolicy_args getEmptyArgsInstance() {
return new removeQueueRedrivePolicy_args();
}
protected boolean isOneway() {
return false;
}
public removeQueueRedrivePolicy_result getResult(I iface, removeQueueRedrivePolicy_args args) throws libthrift091.TException {
removeQueueRedrivePolicy_result result = new removeQueueRedrivePolicy_result();
try {
iface.removeQueueRedrivePolicy(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class setPermission extends libthrift091.ProcessFunction {
public setPermission() {
super("setPermission");
}
public setPermission_args getEmptyArgsInstance() {
return new setPermission_args();
}
protected boolean isOneway() {
return false;
}
public setPermission_result getResult(I iface, setPermission_args args) throws libthrift091.TException {
setPermission_result result = new setPermission_result();
try {
iface.setPermission(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class revokePermission extends libthrift091.ProcessFunction {
public revokePermission() {
super("revokePermission");
}
public revokePermission_args getEmptyArgsInstance() {
return new revokePermission_args();
}
protected boolean isOneway() {
return false;
}
public revokePermission_result getResult(I iface, revokePermission_args args) throws libthrift091.TException {
revokePermission_result result = new revokePermission_result();
try {
iface.revokePermission(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class queryPermission extends libthrift091.ProcessFunction {
public queryPermission() {
super("queryPermission");
}
public queryPermission_args getEmptyArgsInstance() {
return new queryPermission_args();
}
protected boolean isOneway() {
return false;
}
public queryPermission_result getResult(I iface, queryPermission_args args) throws libthrift091.TException {
queryPermission_result result = new queryPermission_result();
try {
result.success = iface.queryPermission(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class queryPermissionForId extends libthrift091.ProcessFunction {
public queryPermissionForId() {
super("queryPermissionForId");
}
public queryPermissionForId_args getEmptyArgsInstance() {
return new queryPermissionForId_args();
}
protected boolean isOneway() {
return false;
}
public queryPermissionForId_result getResult(I iface, queryPermissionForId_args args) throws libthrift091.TException {
queryPermissionForId_result result = new queryPermissionForId_result();
try {
result.success = iface.queryPermissionForId(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class listPermissions extends libthrift091.ProcessFunction {
public listPermissions() {
super("listPermissions");
}
public listPermissions_args getEmptyArgsInstance() {
return new listPermissions_args();
}
protected boolean isOneway() {
return false;
}
public listPermissions_result getResult(I iface, listPermissions_args args) throws libthrift091.TException {
listPermissions_result result = new listPermissions_result();
try {
result.success = iface.listPermissions(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class createTag extends libthrift091.ProcessFunction {
public createTag() {
super("createTag");
}
public createTag_args getEmptyArgsInstance() {
return new createTag_args();
}
protected boolean isOneway() {
return false;
}
public createTag_result getResult(I iface, createTag_args args) throws libthrift091.TException {
createTag_result result = new createTag_result();
try {
result.success = iface.createTag(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class deleteTag extends libthrift091.ProcessFunction {
public deleteTag() {
super("deleteTag");
}
public deleteTag_args getEmptyArgsInstance() {
return new deleteTag_args();
}
protected boolean isOneway() {
return false;
}
public deleteTag_result getResult(I iface, deleteTag_args args) throws libthrift091.TException {
deleteTag_result result = new deleteTag_result();
try {
iface.deleteTag(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class getTagInfo extends libthrift091.ProcessFunction {
public getTagInfo() {
super("getTagInfo");
}
public getTagInfo_args getEmptyArgsInstance() {
return new getTagInfo_args();
}
protected boolean isOneway() {
return false;
}
public getTagInfo_result getResult(I iface, getTagInfo_args args) throws libthrift091.TException {
getTagInfo_result result = new getTagInfo_result();
try {
result.success = iface.getTagInfo(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class listTag extends libthrift091.ProcessFunction {
public listTag() {
super("listTag");
}
public listTag_args getEmptyArgsInstance() {
return new listTag_args();
}
protected boolean isOneway() {
return false;
}
public listTag_result getResult(I iface, listTag_args args) throws libthrift091.TException {
listTag_result result = new listTag_result();
try {
result.success = iface.listTag(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class queryMetric extends libthrift091.ProcessFunction {
public queryMetric() {
super("queryMetric");
}
public queryMetric_args getEmptyArgsInstance() {
return new queryMetric_args();
}
protected boolean isOneway() {
return false;
}
public queryMetric_result getResult(I iface, queryMetric_args args) throws libthrift091.TException {
queryMetric_result result = new queryMetric_result();
try {
result.success = iface.queryMetric(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class queryPrivilegedQueue extends libthrift091.ProcessFunction {
public queryPrivilegedQueue() {
super("queryPrivilegedQueue");
}
public queryPrivilegedQueue_args getEmptyArgsInstance() {
return new queryPrivilegedQueue_args();
}
protected boolean isOneway() {
return false;
}
public queryPrivilegedQueue_result getResult(I iface, queryPrivilegedQueue_args args) throws libthrift091.TException {
queryPrivilegedQueue_result result = new queryPrivilegedQueue_result();
try {
result.success = iface.queryPrivilegedQueue(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class verifyEMQAdmin extends libthrift091.ProcessFunction {
public verifyEMQAdmin() {
super("verifyEMQAdmin");
}
public verifyEMQAdmin_args getEmptyArgsInstance() {
return new verifyEMQAdmin_args();
}
protected boolean isOneway() {
return false;
}
public verifyEMQAdmin_result getResult(I iface, verifyEMQAdmin_args args) throws libthrift091.TException {
verifyEMQAdmin_result result = new verifyEMQAdmin_result();
try {
result.success = iface.verifyEMQAdmin();
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class verifyEMQAdminRole extends libthrift091.ProcessFunction {
public verifyEMQAdminRole() {
super("verifyEMQAdminRole");
}
public verifyEMQAdminRole_args getEmptyArgsInstance() {
return new verifyEMQAdminRole_args();
}
protected boolean isOneway() {
return false;
}
public verifyEMQAdminRole_result getResult(I iface, verifyEMQAdminRole_args args) throws libthrift091.TException {
verifyEMQAdminRole_result result = new verifyEMQAdminRole_result();
try {
result.success = iface.verifyEMQAdminRole(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class copyQueue extends libthrift091.ProcessFunction {
public copyQueue() {
super("copyQueue");
}
public copyQueue_args getEmptyArgsInstance() {
return new copyQueue_args();
}
protected boolean isOneway() {
return false;
}
public copyQueue_result getResult(I iface, copyQueue_args args) throws libthrift091.TException {
copyQueue_result result = new copyQueue_result();
try {
iface.copyQueue(args.request);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
public static class getQueueMeta extends libthrift091.ProcessFunction {
public getQueueMeta() {
super("getQueueMeta");
}
public getQueueMeta_args getEmptyArgsInstance() {
return new getQueueMeta_args();
}
protected boolean isOneway() {
return false;
}
public getQueueMeta_result getResult(I iface, getQueueMeta_args args) throws libthrift091.TException {
getQueueMeta_result result = new getQueueMeta_result();
try {
result.success = iface.getQueueMeta(args.queueName);
} catch (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException e) {
result.e = e;
}
return result;
}
}
}
public static class AsyncProcessor extends com.xiaomi.infra.galaxy.emq.thrift.EMQBaseService.AsyncProcessor {
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("createQueue", new createQueue());
processMap.put("deleteQueue", new deleteQueue());
processMap.put("purgeQueue", new purgeQueue());
processMap.put("setQueueAttribute", new setQueueAttribute());
processMap.put("setQueueQuota", new setQueueQuota());
processMap.put("getQueueInfo", new getQueueInfo());
processMap.put("listQueue", new listQueue());
processMap.put("setQueueRedrivePolicy", new setQueueRedrivePolicy());
processMap.put("removeQueueRedrivePolicy", new removeQueueRedrivePolicy());
processMap.put("setPermission", new setPermission());
processMap.put("revokePermission", new revokePermission());
processMap.put("queryPermission", new queryPermission());
processMap.put("queryPermissionForId", new queryPermissionForId());
processMap.put("listPermissions", new listPermissions());
processMap.put("createTag", new createTag());
processMap.put("deleteTag", new deleteTag());
processMap.put("getTagInfo", new getTagInfo());
processMap.put("listTag", new listTag());
processMap.put("queryMetric", new queryMetric());
processMap.put("queryPrivilegedQueue", new queryPrivilegedQueue());
processMap.put("verifyEMQAdmin", new verifyEMQAdmin());
processMap.put("verifyEMQAdminRole", new verifyEMQAdminRole());
processMap.put("copyQueue", new copyQueue());
processMap.put("getQueueMeta", new getQueueMeta());
return processMap;
}
public static class createQueue extends libthrift091.AsyncProcessFunction {
public createQueue() {
super("createQueue");
}
public createQueue_args getEmptyArgsInstance() {
return new createQueue_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(CreateQueueResponse o) {
createQueue_result result = new createQueue_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
createQueue_result result = new createQueue_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, createQueue_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.createQueue(args.request,resultHandler);
}
}
public static class deleteQueue extends libthrift091.AsyncProcessFunction {
public deleteQueue() {
super("deleteQueue");
}
public deleteQueue_args getEmptyArgsInstance() {
return new deleteQueue_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
deleteQueue_result result = new deleteQueue_result();
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
deleteQueue_result result = new deleteQueue_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, deleteQueue_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.deleteQueue(args.request,resultHandler);
}
}
public static class purgeQueue extends libthrift091.AsyncProcessFunction {
public purgeQueue() {
super("purgeQueue");
}
public purgeQueue_args getEmptyArgsInstance() {
return new purgeQueue_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
purgeQueue_result result = new purgeQueue_result();
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
purgeQueue_result result = new purgeQueue_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, purgeQueue_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.purgeQueue(args.request,resultHandler);
}
}
public static class setQueueAttribute extends libthrift091.AsyncProcessFunction {
public setQueueAttribute() {
super("setQueueAttribute");
}
public setQueueAttribute_args getEmptyArgsInstance() {
return new setQueueAttribute_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(SetQueueAttributesResponse o) {
setQueueAttribute_result result = new setQueueAttribute_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
setQueueAttribute_result result = new setQueueAttribute_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, setQueueAttribute_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.setQueueAttribute(args.request,resultHandler);
}
}
public static class setQueueQuota extends libthrift091.AsyncProcessFunction {
public setQueueQuota() {
super("setQueueQuota");
}
public setQueueQuota_args getEmptyArgsInstance() {
return new setQueueQuota_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(SetQueueQuotaResponse o) {
setQueueQuota_result result = new setQueueQuota_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
setQueueQuota_result result = new setQueueQuota_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, setQueueQuota_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.setQueueQuota(args.request,resultHandler);
}
}
public static class getQueueInfo extends libthrift091.AsyncProcessFunction {
public getQueueInfo() {
super("getQueueInfo");
}
public getQueueInfo_args getEmptyArgsInstance() {
return new getQueueInfo_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(GetQueueInfoResponse o) {
getQueueInfo_result result = new getQueueInfo_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
getQueueInfo_result result = new getQueueInfo_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, getQueueInfo_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.getQueueInfo(args.request,resultHandler);
}
}
public static class listQueue extends libthrift091.AsyncProcessFunction {
public listQueue() {
super("listQueue");
}
public listQueue_args getEmptyArgsInstance() {
return new listQueue_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(ListQueueResponse o) {
listQueue_result result = new listQueue_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
listQueue_result result = new listQueue_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, listQueue_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.listQueue(args.request,resultHandler);
}
}
public static class setQueueRedrivePolicy extends libthrift091.AsyncProcessFunction {
public setQueueRedrivePolicy() {
super("setQueueRedrivePolicy");
}
public setQueueRedrivePolicy_args getEmptyArgsInstance() {
return new setQueueRedrivePolicy_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(SetQueueRedrivePolicyResponse o) {
setQueueRedrivePolicy_result result = new setQueueRedrivePolicy_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
setQueueRedrivePolicy_result result = new setQueueRedrivePolicy_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, setQueueRedrivePolicy_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.setQueueRedrivePolicy(args.request,resultHandler);
}
}
public static class removeQueueRedrivePolicy extends libthrift091.AsyncProcessFunction {
public removeQueueRedrivePolicy() {
super("removeQueueRedrivePolicy");
}
public removeQueueRedrivePolicy_args getEmptyArgsInstance() {
return new removeQueueRedrivePolicy_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
removeQueueRedrivePolicy_result result = new removeQueueRedrivePolicy_result();
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
removeQueueRedrivePolicy_result result = new removeQueueRedrivePolicy_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, removeQueueRedrivePolicy_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.removeQueueRedrivePolicy(args.request,resultHandler);
}
}
public static class setPermission extends libthrift091.AsyncProcessFunction {
public setPermission() {
super("setPermission");
}
public setPermission_args getEmptyArgsInstance() {
return new setPermission_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
setPermission_result result = new setPermission_result();
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
setPermission_result result = new setPermission_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, setPermission_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.setPermission(args.request,resultHandler);
}
}
public static class revokePermission extends libthrift091.AsyncProcessFunction {
public revokePermission() {
super("revokePermission");
}
public revokePermission_args getEmptyArgsInstance() {
return new revokePermission_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
revokePermission_result result = new revokePermission_result();
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
revokePermission_result result = new revokePermission_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, revokePermission_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.revokePermission(args.request,resultHandler);
}
}
public static class queryPermission extends libthrift091.AsyncProcessFunction {
public queryPermission() {
super("queryPermission");
}
public queryPermission_args getEmptyArgsInstance() {
return new queryPermission_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(QueryPermissionResponse o) {
queryPermission_result result = new queryPermission_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
queryPermission_result result = new queryPermission_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, queryPermission_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.queryPermission(args.request,resultHandler);
}
}
public static class queryPermissionForId extends libthrift091.AsyncProcessFunction {
public queryPermissionForId() {
super("queryPermissionForId");
}
public queryPermissionForId_args getEmptyArgsInstance() {
return new queryPermissionForId_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(QueryPermissionForIdResponse o) {
queryPermissionForId_result result = new queryPermissionForId_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
queryPermissionForId_result result = new queryPermissionForId_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, queryPermissionForId_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.queryPermissionForId(args.request,resultHandler);
}
}
public static class listPermissions extends libthrift091.AsyncProcessFunction {
public listPermissions() {
super("listPermissions");
}
public listPermissions_args getEmptyArgsInstance() {
return new listPermissions_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(ListPermissionsResponse o) {
listPermissions_result result = new listPermissions_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
listPermissions_result result = new listPermissions_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, listPermissions_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.listPermissions(args.request,resultHandler);
}
}
public static class createTag extends libthrift091.AsyncProcessFunction {
public createTag() {
super("createTag");
}
public createTag_args getEmptyArgsInstance() {
return new createTag_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(CreateTagResponse o) {
createTag_result result = new createTag_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
createTag_result result = new createTag_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, createTag_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.createTag(args.request,resultHandler);
}
}
public static class deleteTag extends libthrift091.AsyncProcessFunction {
public deleteTag() {
super("deleteTag");
}
public deleteTag_args getEmptyArgsInstance() {
return new deleteTag_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
deleteTag_result result = new deleteTag_result();
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
deleteTag_result result = new deleteTag_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, deleteTag_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.deleteTag(args.request,resultHandler);
}
}
public static class getTagInfo extends libthrift091.AsyncProcessFunction {
public getTagInfo() {
super("getTagInfo");
}
public getTagInfo_args getEmptyArgsInstance() {
return new getTagInfo_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(GetTagInfoResponse o) {
getTagInfo_result result = new getTagInfo_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
getTagInfo_result result = new getTagInfo_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, getTagInfo_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.getTagInfo(args.request,resultHandler);
}
}
public static class listTag extends libthrift091.AsyncProcessFunction {
public listTag() {
super("listTag");
}
public listTag_args getEmptyArgsInstance() {
return new listTag_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(ListTagResponse o) {
listTag_result result = new listTag_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
listTag_result result = new listTag_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, listTag_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.listTag(args.request,resultHandler);
}
}
public static class queryMetric extends libthrift091.AsyncProcessFunction {
public queryMetric() {
super("queryMetric");
}
public queryMetric_args getEmptyArgsInstance() {
return new queryMetric_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(TimeSeriesData o) {
queryMetric_result result = new queryMetric_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
queryMetric_result result = new queryMetric_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, queryMetric_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.queryMetric(args.request,resultHandler);
}
}
public static class queryPrivilegedQueue extends libthrift091.AsyncProcessFunction {
public queryPrivilegedQueue() {
super("queryPrivilegedQueue");
}
public queryPrivilegedQueue_args getEmptyArgsInstance() {
return new queryPrivilegedQueue_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(QueryPrivilegedQueueResponse o) {
queryPrivilegedQueue_result result = new queryPrivilegedQueue_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
queryPrivilegedQueue_result result = new queryPrivilegedQueue_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, queryPrivilegedQueue_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.queryPrivilegedQueue(args.request,resultHandler);
}
}
public static class verifyEMQAdmin extends libthrift091.AsyncProcessFunction {
public verifyEMQAdmin() {
super("verifyEMQAdmin");
}
public verifyEMQAdmin_args getEmptyArgsInstance() {
return new verifyEMQAdmin_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(VerifyEMQAdminResponse o) {
verifyEMQAdmin_result result = new verifyEMQAdmin_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
verifyEMQAdmin_result result = new verifyEMQAdmin_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, verifyEMQAdmin_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.verifyEMQAdmin(resultHandler);
}
}
public static class verifyEMQAdminRole extends libthrift091.AsyncProcessFunction {
public verifyEMQAdminRole() {
super("verifyEMQAdminRole");
}
public verifyEMQAdminRole_args getEmptyArgsInstance() {
return new verifyEMQAdminRole_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(VerifyEMQAdminRoleResponse o) {
verifyEMQAdminRole_result result = new verifyEMQAdminRole_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
verifyEMQAdminRole_result result = new verifyEMQAdminRole_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, verifyEMQAdminRole_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.verifyEMQAdminRole(args.request,resultHandler);
}
}
public static class copyQueue extends libthrift091.AsyncProcessFunction {
public copyQueue() {
super("copyQueue");
}
public copyQueue_args getEmptyArgsInstance() {
return new copyQueue_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
copyQueue_result result = new copyQueue_result();
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
copyQueue_result result = new copyQueue_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, copyQueue_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.copyQueue(args.request,resultHandler);
}
}
public static class getQueueMeta extends libthrift091.AsyncProcessFunction {
public getQueueMeta() {
super("getQueueMeta");
}
public getQueueMeta_args getEmptyArgsInstance() {
return new getQueueMeta_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(GetQueueMetaResponse o) {
getQueueMeta_result result = new getQueueMeta_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.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 = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
getQueueMeta_result result = new getQueueMeta_result();
if (e instanceof com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) {
result.e = (com.xiaomi.infra.galaxy.emq.thrift.GalaxyEmqServiceException) e;
result.setEIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.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, getQueueMeta_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.getQueueMeta(args.queueName,resultHandler);
}
}
}
public static class createQueue_args implements libthrift091.TBase, java.io.Serializable, Cloneable, Comparable {
private static final libthrift091.protocol.TStruct STRUCT_DESC = new libthrift091.protocol.TStruct("createQueue_args");
private static final libthrift091.protocol.TField REQUEST_FIELD_DESC = new libthrift091.protocol.TField("request", libthrift091.protocol.TType.STRUCT, (short)1);
private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new createQueue_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new createQueue_argsTupleSchemeFactory());
}
public CreateQueueRequest request; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements libthrift091.TFieldIdEnum {
REQUEST((short)1, "request");
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: // REQUEST
return 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, libthrift091.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, libthrift091.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, libthrift091.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.REQUEST, new libthrift091.meta_data.FieldMetaData("request", libthrift091.TFieldRequirementType.DEFAULT,
new libthrift091.meta_data.StructMetaData(libthrift091.protocol.TType.STRUCT, CreateQueueRequest.class)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
libthrift091.meta_data.FieldMetaData.addStructMetaDataMap(createQueue_args.class, metaDataMap);
}
public createQueue_args() {
}
public createQueue_args(
CreateQueueRequest request)
{
this();
this.request = request;
}
/**
* Performs a deep copy on other.
*/
public createQueue_args(createQueue_args other) {
if (other.isSetRequest()) {
this.request = new CreateQueueRequest(other.request);
}
}
public createQueue_args deepCopy() {
return new createQueue_args(this);
}
@Override
public void clear() {
this.request = null;
}
public CreateQueueRequest getRequest() {
return this.request;
}
public createQueue_args setRequest(CreateQueueRequest request) {
this.request = request;
return this;
}
public void unsetRequest() {
this.request = null;
}
/** Returns true if field request is set (has been assigned a value) and false otherwise */
public boolean isSetRequest() {
return this.request != null;
}
public void setRequestIsSet(boolean value) {
if (!value) {
this.request = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case REQUEST:
if (value == null) {
unsetRequest();
} else {
setRequest((CreateQueueRequest)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case REQUEST:
return getRequest();
}
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 REQUEST:
return isSetRequest();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof createQueue_args)
return this.equals((createQueue_args)that);
return false;
}
public boolean equals(createQueue_args that) {
if (that == null)
return false;
boolean this_present_request = true && this.isSetRequest();
boolean that_present_request = true && that.isSetRequest();
if (this_present_request || that_present_request) {
if (!(this_present_request && that_present_request))
return false;
if (!this.request.equals(that.request))
return false;
}
return true;
}
@Override
public int hashCode() {
List