Search in sources :

Example 6 with CmqConfig

use of com.qcloud.cmq.entity.CmqConfig in project cmq-java-sdk by tencentyun.

the class QueueTest method initConfig.

@Before
public void initConfig() {
    cmqConfig = new CmqConfig();
    cmqConfig.setEndpoint("");
    cmqConfig.setSecretId("");
    cmqConfig.setSecretKey("");
    cmqConfig.setConnectTimeout(10000);
    cmqConfig.setReadTimeout(10000);
    cmqConfig.setReceiveTimeout(15000);
    cmqConfig.setMaxIdleConnections(1);
    account = new Account(cmqConfig);
}
Also used : CmqConfig(com.qcloud.cmq.entity.CmqConfig) Before(org.junit.Before)

Aggregations

CmqConfig (com.qcloud.cmq.entity.CmqConfig)6 Account (com.qcloud.cmq.Account)2 Credential (com.tencentcloudapi.common.Credential)2 TencentCloudSDKException (com.tencentcloudapi.common.exception.TencentCloudSDKException)2 ClientProfile (com.tencentcloudapi.common.profile.ClientProfile)2 HttpProfile (com.tencentcloudapi.common.profile.HttpProfile)2 TdmqClient (com.tencentcloudapi.tdmq.v20200217.TdmqClient)2 CmqQueue (com.tencentcloudapi.tdmq.v20200217.models.CmqQueue)2 Before (org.junit.Before)2 DescribeCmqQueueDetailRequest (com.tencentcloudapi.tdmq.v20200217.models.DescribeCmqQueueDetailRequest)1 DescribeCmqQueueDetailResponse (com.tencentcloudapi.tdmq.v20200217.models.DescribeCmqQueueDetailResponse)1 DescribeCmqQueuesRequest (com.tencentcloudapi.tdmq.v20200217.models.DescribeCmqQueuesRequest)1 DescribeCmqQueuesResponse (com.tencentcloudapi.tdmq.v20200217.models.DescribeCmqQueuesResponse)1