use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class TdmqClient method DescribeSubscriptions.
/**
*This API is used to query the list of subscribers under the specified environment and topic.
* @param req DescribeSubscriptionsRequest
* @return DescribeSubscriptionsResponse
* @throws TencentCloudSDKException
*/
public DescribeSubscriptionsResponse DescribeSubscriptions(DescribeSubscriptionsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeSubscriptionsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeSubscriptionsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeSubscriptions");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class TdmqClient method DescribeCmqQueues.
/**
*This API is used to query all CMQ queues.
* @param req DescribeCmqQueuesRequest
* @return DescribeCmqQueuesResponse
* @throws TencentCloudSDKException
*/
public DescribeCmqQueuesResponse DescribeCmqQueues(DescribeCmqQueuesRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeCmqQueuesResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeCmqQueuesResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeCmqQueues");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class TdmqClient method DescribeRocketMQTopics.
/**
*This API is used to get the list of RocketMQ topics.
* @param req DescribeRocketMQTopicsRequest
* @return DescribeRocketMQTopicsResponse
* @throws TencentCloudSDKException
*/
public DescribeRocketMQTopicsResponse DescribeRocketMQTopics(DescribeRocketMQTopicsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeRocketMQTopicsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeRocketMQTopicsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeRocketMQTopics");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class TdmqClient method DescribeClusters.
/**
*This API is used to get the list of clusters.
* @param req DescribeClustersRequest
* @return DescribeClustersResponse
* @throws TencentCloudSDKException
*/
public DescribeClustersResponse DescribeClusters(DescribeClustersRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeClustersResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeClustersResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeClusters");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class TdmqClient method DescribeRocketMQNamespaces.
/**
*This API is used to get the list of RocketMQ namespaces.
* @param req DescribeRocketMQNamespacesRequest
* @return DescribeRocketMQNamespacesResponse
* @throws TencentCloudSDKException
*/
public DescribeRocketMQNamespacesResponse DescribeRocketMQNamespaces(DescribeRocketMQNamespacesRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeRocketMQNamespacesResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeRocketMQNamespacesResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeRocketMQNamespaces");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
Aggregations