tencentcloud-sdk-nodejs-tdmq 4.0.371 → 4.0.374

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-tdmq",
3
- "version": "4.0.371",
3
+ "version": "4.0.374",
4
4
  "description": "Tencent Cloud API NODEJS SDK",
5
5
  "main": "tencentcloud/index.js",
6
6
  "scripts": {
package/products.md CHANGED
@@ -8,17 +8,17 @@
8
8
  | afc | [定制建模](https://cloud.tencent.com/document/product/1029) | 2022-05-23 06:01:56 |
9
9
  | ame | [正版曲库直通车](https://cloud.tencent.com/document/product/1155) | 2022-04-15 06:01:25 |
10
10
  | ams | [音频内容检测](https://cloud.tencent.com/document/product/1219) | 2022-06-23 06:06:13 |
11
- | antiddos | [DDoS 防护](https://cloud.tencent.com/document/product/1021) | 2022-06-16 06:00:42 |
11
+ | antiddos | [DDoS 防护](https://cloud.tencent.com/document/product/1021) | 2022-07-01 06:05:20 |
12
12
  | apcas | [汽车精准获客服务](https://cloud.tencent.com/document/product/1244) | 2022-04-04 06:05:36 |
13
13
  | ape | [正版图库直通车](https://cloud.tencent.com/document/product/1181) | 2022-04-04 06:05:40 |
14
14
  | api | [云 API](https://cloud.tencent.com/document/product/1278) | 2022-06-07 06:00:45 |
15
15
  | apigateway | [API网关](https://cloud.tencent.com/document/product/628) | 2022-06-14 06:05:10 |
16
- | apm | [应用性能观测](https://cloud.tencent.com/document/product/1463) | 2022-06-21 06:01:15 |
16
+ | apm | [应用性能观测](https://cloud.tencent.com/document/product/1463) | 2022-06-30 06:00:50 |
17
17
  | as | [弹性伸缩](https://cloud.tencent.com/document/product/377) | 2022-06-02 06:02:22 |
18
18
  | asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2022-06-23 06:06:50 |
19
19
  | asw | [应用与服务编排工作流](https://cloud.tencent.com/document/product/1272) | 2022-04-04 06:08:40 |
20
20
  | ba | [网站备案](https://cloud.tencent.com/document/product/243) | 2022-04-04 06:08:45 |
21
- | batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2022-05-31 06:04:46 |
21
+ | batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2022-06-29 06:02:26 |
22
22
  | bda | [人体分析](https://cloud.tencent.com/document/product/1208) | 2022-05-09 06:02:49 |
23
23
  | bi | [商业智能分析 BI](https://cloud.tencent.com/document/product/590) | 2022-05-13 18:34:36 |
24
24
  | billing | [计费相关](https://cloud.tencent.com/document/product/555) | 2022-06-08 06:04:08 |
@@ -34,49 +34,49 @@
34
34
  | captcha | [验证码](https://cloud.tencent.com/document/product/1110) | 2022-04-12 06:07:13 |
35
35
  | car | [应用云渲染](https://cloud.tencent.com/document/product/1547) | 2022-04-27 06:05:49 |
36
36
  | casb | [云数据加密代理网关](https://cloud.tencent.com/document/product/1303) | 2022-04-04 06:11:55 |
37
- | cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2022-06-17 06:03:48 |
37
+ | cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2022-06-30 06:01:55 |
38
38
  | cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2022-05-31 06:05:45 |
39
- | ccc | [云呼叫中心](https://cloud.tencent.com/document/product/679) | 2022-06-20 06:03:42 |
39
+ | ccc | [云呼叫中心](https://cloud.tencent.com/document/product/679) | 2022-07-01 06:06:59 |
40
40
  | cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2022-06-27 06:05:09 |
41
41
  | cdc | [本地专用集群](https://cloud.tencent.com/document/product/1346) | 2022-05-16 17:18:07 |
42
- | cdn | [内容分发网络](https://cloud.tencent.com/document/product/228) | 2022-06-23 06:08:11 |
42
+ | cdn | [内容分发网络](https://cloud.tencent.com/document/product/228) | 2022-06-30 06:02:27 |
43
43
  | cds | [数据安全审计](https://cloud.tencent.com/document/product/856) | 2022-04-04 06:17:07 |
44
44
  | cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2022-05-24 06:08:29 |
45
45
  | cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2022-04-04 06:17:16 |
46
46
  | cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2022-05-31 06:06:47 |
47
47
  | chdfs | [云 HDFS](https://cloud.tencent.com/document/product/1105) | 2022-05-26 06:08:04 |
48
- | ciam | [账号风控平台](https://cloud.tencent.com/document/product/1441) | 2022-06-17 10:12:20 |
48
+ | ciam | [账号风控平台](https://cloud.tencent.com/document/product/1441) | 2022-06-30 10:31:31 |
49
49
  | cii | [智能保险助手](https://cloud.tencent.com/document/product/1368) | 2022-06-27 06:06:02 |
50
50
  | cim | [](https://cloud.tencent.com/document/product) | 2019-05-16 17:21:18 |
51
51
  | cis | [](https://cloud.tencent.com/document/product) | 2018-06-07 15:01:42 |
52
52
  | ckafka | [消息队列 Ckafka](https://cloud.tencent.com/document/product/597) | 2022-05-31 06:07:03 |
53
- | clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2022-05-11 06:06:40 |
53
+ | clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2022-06-29 06:04:25 |
54
54
  | cloudaudit | [云审计](https://cloud.tencent.com/document/product/629) | 2022-05-25 06:05:44 |
55
55
  | cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2022-06-22 06:04:38 |
56
- | cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2022-06-22 06:04:41 |
56
+ | cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2022-06-29 06:04:44 |
57
57
  | cme | [多媒体创作引擎](https://cloud.tencent.com/document/product/1156) | 2022-06-24 06:09:00 |
58
58
  | cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2022-04-04 06:23:04 |
59
59
  | cms | [内容安全](https://cloud.tencent.com/document/product) | 2020-10-29 08:03:08 |
60
- | cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2022-06-28 06:07:23 |
60
+ | cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2022-07-01 06:08:45 |
61
61
  | cr | [金融联络机器人](https://cloud.tencent.com/document/product/656) | 2021-02-24 08:03:24 |
62
- | cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2022-06-16 06:04:38 |
63
- | cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2022-06-23 06:10:09 |
62
+ | cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2022-06-29 06:05:30 |
63
+ | cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2022-07-01 06:09:29 |
64
64
  | cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 |
65
65
  | cynosdb | [云原生数据库 TDSQL-C](https://cloud.tencent.com/document/product/1003) | 2022-06-15 06:07:21 |
66
66
  | dasb | [堡垒机](https://cloud.tencent.com/document/product/1025) | 2022-06-01 20:56:43 |
67
67
  | dayu | [DDoS 高防包](https://cloud.tencent.com/document/product/1021) | 2022-04-04 06:33:41 |
68
68
  | dbbrain | [数据库智能管家 DBbrain](https://cloud.tencent.com/document/product/1130) | 2022-06-22 06:06:28 |
69
- | dbdc | [云数据库独享集群](https://cloud.tencent.com/document/product/1322) | 2022-05-31 17:05:07 |
69
+ | dbdc | [云数据库独享集群](https://cloud.tencent.com/document/product/1322) | 2022-07-01 11:26:52 |
70
70
  | dc | [专线接入](https://cloud.tencent.com/document/product/216) | 2022-04-13 06:36:47 |
71
71
  | dcdb | [分布式数据库 TDSQL](https://cloud.tencent.com/document/product/557) | 2022-05-31 06:09:47 |
72
- | dlc | [数据湖计算](https://cloud.tencent.com/document/product/1342) | 2022-06-21 06:06:29 |
72
+ | dlc | [数据湖计算](https://cloud.tencent.com/document/product/1342) | 2022-07-01 06:10:47 |
73
73
  | dnspod | [DNSPod](https://cloud.tencent.com/document/product/1427) | 2022-06-23 06:11:27 |
74
74
  | domain | [域名注册](https://cloud.tencent.com/document/product/242) | 2022-05-24 06:11:36 |
75
75
  | drm | [数字版权管理](https://cloud.tencent.com/document/product/1000) | 2022-04-04 06:38:48 |
76
76
  | ds | [电子合同服务](https://cloud.tencent.com/document/product/869) | 2022-04-04 06:38:52 |
77
77
  | dtf | [分布式事务](https://cloud.tencent.com/document/product/1224) | 2022-04-04 06:38:57 |
78
78
  | dts | [数据传输服务](https://cloud.tencent.com/document/product/571) | 2022-05-11 06:09:11 |
79
- | eb | [事件总线](https://cloud.tencent.com/document/product/1359) | 2022-06-28 06:09:50 |
79
+ | eb | [事件总线](https://cloud.tencent.com/document/product/1359) | 2022-06-30 06:06:12 |
80
80
  | ecc | [英文作文批改](https://cloud.tencent.com/document/product/1076) | 2022-04-04 06:39:27 |
81
81
  | ecdn | [全站加速网络](https://cloud.tencent.com/document/product/570) | 2022-04-08 06:06:57 |
82
82
  | ecm | [边缘计算机器](https://cloud.tencent.com/document/product/1108) | 2022-06-24 06:11:32 |
@@ -84,8 +84,8 @@
84
84
  | eis | [企业集成服务](https://cloud.tencent.com/document/product/1270) | 2022-06-16 06:06:58 |
85
85
  | emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2022-06-09 06:11:36 |
86
86
  | es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2022-06-20 06:08:20 |
87
- | ess | [电子签服务](https://cloud.tencent.com/document/product/1323) | 2022-06-15 06:09:03 |
88
- | essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2022-06-28 06:10:35 |
87
+ | ess | [电子签服务](https://cloud.tencent.com/document/product/1323) | 2022-07-01 06:11:57 |
88
+ | essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2022-06-30 16:47:49 |
89
89
  | facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2022-06-15 06:09:10 |
90
90
  | faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2022-06-02 06:08:18 |
91
91
  | fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2022-04-04 06:43:06 |
@@ -120,19 +120,19 @@
120
120
  | market | [云市场](https://cloud.tencent.com/document/product/306) | 2022-04-04 06:57:43 |
121
121
  | memcached | [云数据库 Memcached](https://cloud.tencent.com/document/product/241) | 2022-04-04 06:57:44 |
122
122
  | mgobe | [游戏联机对战引擎](https://cloud.tencent.com/document/product/1038) | 2022-04-04 06:57:46 |
123
- | mmps | [小程序安全](https://cloud.tencent.com/document/product/1223) | 2022-06-27 14:56:37 |
123
+ | mmps | [小程序安全](https://cloud.tencent.com/document/product/1223) | 2022-06-28 19:50:53 |
124
124
  | mna | [移动网络加速](https://cloud.tencent.com/document/product/1385) | 2022-04-04 06:57:51 |
125
125
  | mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2022-06-07 06:10:21 |
126
126
  | monitor | [云监控](https://cloud.tencent.com/document/product/248) | 2022-06-28 06:13:35 |
127
127
  | mps | [视频处理](https://cloud.tencent.com/document/product/862) | 2022-05-25 06:12:20 |
128
128
  | mrs | [医疗报告结构化](https://cloud.tencent.com/document/product/1314) | 2022-06-28 06:14:04 |
129
- | ms | [移动应用安全](https://cloud.tencent.com/document/product) | 2020-06-05 08:13:52 |
129
+ | ms | [移动应用安全](https://cloud.tencent.com/document/product/283) | 2022-07-01 11:58:05 |
130
130
  | msp | [迁移服务平台](https://cloud.tencent.com/document/product/659) | 2022-04-04 07:00:13 |
131
131
  | mvj | [营销价值判断](https://cloud.tencent.com/document/product) | 2020-03-19 08:11:44 |
132
132
  | nlp | [自然语言处理](https://cloud.tencent.com/document/product/271) | 2022-04-13 07:00:13 |
133
133
  | npp | [号码保护](https://cloud.tencent.com/document/product) | 2020-04-22 08:00:22 |
134
134
  | oceanus | [流计算 Oceanus](https://cloud.tencent.com/document/product/849) | 2022-06-15 06:12:20 |
135
- | ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2022-06-27 06:12:56 |
135
+ | ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2022-06-29 06:11:12 |
136
136
  | organization | [企业组织](https://cloud.tencent.com/document/product/850) | 2022-06-10 06:11:43 |
137
137
  | partners | [渠道合作伙伴](https://cloud.tencent.com/document/product/563) | 2022-06-13 06:15:36 |
138
138
  | pds | [私域安全](https://cloud.tencent.com/document/product/1473) | 2022-04-04 07:02:02 |
@@ -156,7 +156,7 @@
156
156
  | sslpod | [SSL 证书监控](https://cloud.tencent.com/document/product/1084) | 2022-04-04 07:07:55 |
157
157
  | ssm | [凭据管理系统](https://cloud.tencent.com/document/product/1140) | 2022-04-04 07:08:00 |
158
158
  | sts | [安全凭证服务](https://cloud.tencent.com/document/product/1312) | 2022-05-18 06:16:35 |
159
- | taf | [流量反欺诈](https://cloud.tencent.com/document/product/1031) | 2022-04-04 07:08:16 |
159
+ | taf | [流量反欺诈](https://cloud.tencent.com/document/product/1031) | 2022-07-01 06:16:56 |
160
160
  | tag | [标签](https://cloud.tencent.com/document/product/651) | 2022-04-08 06:12:35 |
161
161
  | tan | [碳引擎](https://cloud.tencent.com/document/product/1498) | 2022-06-06 16:47:40 |
162
162
  | tat | [腾讯云自动化助手](https://cloud.tencent.com/document/product/1340) | 2022-04-08 06:12:44 |
@@ -166,7 +166,7 @@
166
166
  | tbp | [腾讯智能对话平台](https://cloud.tencent.com/document/product/1060) | 2022-04-04 07:09:07 |
167
167
  | tcaplusdb | [游戏数据库 TcaplusDB](https://cloud.tencent.com/document/product/596) | 2022-04-08 06:12:54 |
168
168
  | tcb | [云开发 CloudBase](https://cloud.tencent.com/document/product/876) | 2022-04-26 06:16:06 |
169
- | tcbr | [云托管 CloudBase Run](https://cloud.tencent.com/document/product/1243) | 2022-06-28 06:16:23 |
169
+ | tcbr | [云托管 CloudBase Run](https://cloud.tencent.com/document/product/1243) | 2022-07-01 06:17:30 |
170
170
  | tcex | [腾讯云释义](https://cloud.tencent.com/document/product/1266) | 2022-04-04 07:10:49 |
171
171
  | tci | [腾讯智学课堂分析](https://cloud.tencent.com/document/product) | 2020-08-24 08:06:03 |
172
172
  | tcm | [服务网格](https://cloud.tencent.com/document/product/1261) | 2022-06-08 06:15:21 |
@@ -174,9 +174,9 @@
174
174
  | tcss | [容器安全服务](https://cloud.tencent.com/document/product/1285) | 2022-06-21 06:13:45 |
175
175
  | tdcpg | [TDSQL-C PostgreSQL 版](https://cloud.tencent.com/document/product/1556) | 2022-04-04 07:15:36 |
176
176
  | tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2022-04-04 07:15:50 |
177
- | tdmq | [分布式消息队列](https://cloud.tencent.com/document/product/1179) | 2022-06-28 06:17:03 |
177
+ | tdmq | [分布式消息队列](https://cloud.tencent.com/document/product/1179) | 2022-06-29 06:13:55 |
178
178
  | tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2022-06-20 06:14:36 |
179
- | teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2022-06-27 06:15:53 |
179
+ | teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2022-07-01 06:18:27 |
180
180
  | thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2022-06-02 06:15:03 |
181
181
  | tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
182
182
  | tic | [腾讯云IaC平台](https://cloud.tencent.com/document/product/1213) | 2022-04-04 07:16:52 |
@@ -186,24 +186,26 @@
186
186
  | tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2022-06-15 06:15:49 |
187
187
  | tione | [腾讯云 TI 平台 TI-ONE](https://cloud.tencent.com/document/product/851) | 2022-06-07 22:05:59 |
188
188
  | tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2022-05-17 06:17:19 |
189
- | tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2022-06-27 06:16:26 |
189
+ | tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2022-07-01 06:19:07 |
190
190
  | tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 |
191
191
  | tms | [文本内容安全](https://cloud.tencent.com/document/product/1124) | 2022-04-04 07:18:11 |
192
192
  | tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2022-05-19 06:19:37 |
193
193
  | trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2022-06-07 16:18:00 |
194
- | trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2022-06-21 06:15:46 |
194
+ | trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2022-06-28 11:47:33 |
195
195
  | tse | [腾讯云微服务引擎](https://cloud.tencent.com/document/product/1364) | 2022-06-28 06:18:34 |
196
- | tsf | [腾讯微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2022-06-21 06:15:54 |
196
+ | tsf | [腾讯微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2022-07-01 06:19:44 |
197
197
  | tsw | [腾讯微服务观测平台 TSW](https://cloud.tencent.com/document/product/1311) | 2022-04-04 07:22:40 |
198
198
  | tts | [语音合成](https://cloud.tencent.com/document/product/1073) | 2022-06-07 06:15:49 |
199
199
  | ump | [客流数字化平台](https://cloud.tencent.com/document/product/1320) | 2022-04-04 07:22:44 |
200
200
  | vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2022-06-23 06:20:49 |
201
201
  | vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2022-04-04 07:22:54 |
202
- | vod | [云点播](https://cloud.tencent.com/document/product/266) | 2022-06-23 06:20:52 |
203
- | vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2022-06-27 06:17:51 |
202
+ | vod | [云点播](https://cloud.tencent.com/document/product/266) | 2022-06-30 10:45:16 |
203
+ | vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2022-07-01 06:20:43 |
204
204
  | waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2022-06-23 06:22:00 |
205
205
  | wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2022-04-04 07:39:05 |
206
+ | wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2022-07-01 10:43:09 |
206
207
  | wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
208
+ | yinsuda | [音速达直播音乐版权引擎](https://cloud.tencent.com/document/product/1592) | 2022-06-29 15:15:26 |
207
209
  | youmall | [](https://cloud.tencent.com/document/product) | 2019-01-11 11:24:15 |
208
210
  | yunjing | [主机安全](https://cloud.tencent.com/document/product) | 2020-09-15 08:08:47 |
209
211
  | yunsou | [腾讯云搜](https://cloud.tencent.com/document/product/270) | 2022-04-04 07:39:18 |
@@ -937,8 +937,28 @@ export class Client extends TencentCloudCommon.AbstractClient {
937
937
  }
938
938
 
939
939
  /**
940
- * 接收发送到指定 topic 中的消息
941
- */
940
+ * 接收发送到指定 topic 中的消息,当 Topic 中没有消息但还去尝试调用该接口时,会抛出 ReceiveTimeout 的异常。
941
+
942
+ 如何使用 BatchReceivePolicy:
943
+
944
+ BatchReceive 接口提供了如下三个参数:
945
+
946
+ ● MaxNumMessages: 即每次使用 BatchReceive 的时候,最多一次Receive接口返回多少条消息。
947
+ ● MaxNumBytes:即每次使用 BatchReceive 的时候,最多一次Receive接口返回多大内容的消息,单位是:bytes。
948
+ ● Timeout:即每次使用 BatchReceive 的时候,最多一次 Receive 接口的超时时间是多久,单位是:MS。
949
+
950
+ 默认如果上述三个参数都不指定,即关闭 BatchReceive 的特性。如果三个参数中的任意一个参数指定的数值大于 0,即开启 BatchReceive。BatchReceive 的结束条件为到达上述三个参数中任意一个指定的阈值。
951
+
952
+ 注意:MaxNumMessages 和 MaxNumBytes 每一次接收的最大消息同时受限于 ReceiveQueueSize 的大小,如果 ReceiveQueueSize 的大小设置为 5,MaxNumMessages 设置为10,那么一次 BatchReceive 接收的最多的消息是 5条,而不是10条。
953
+
954
+
955
+
956
+ BatchReceivePolicy 的接口会一次性返回多条消息:
957
+
958
+ 1. 多条消息的内容之间使用特殊字符 '###' 来进行分割,业务侧接收到消息之后,可以利用不同语言提供的 Split 工具分割不同的消息。
959
+ 2. 多条消息的 MessageID 之间使用特殊字符 '###' 来进行分割,业务侧接收到消息之后,可以利用不同语言提供的 Split 工具分割不同的消息。(用于在调用 AcknowledgeMessage 接口中填入所需要的 MessageID 字段信息)
960
+
961
+ */
942
962
  async ReceiveMessage(
943
963
  req: ReceiveMessageRequest,
944
964
  cb?: (error: string, rep: ReceiveMessageResponse) => void
@@ -262,7 +262,7 @@ export interface ModifyEnvironmentAttributesRequest {
262
262
  EnvironmentId: string
263
263
 
264
264
  /**
265
- * 未消费消息过期时间,单位:秒,最大1296000。
265
+ * 未消费消息过期时间,单位:秒,范围60秒~1天。
266
266
  */
267
267
  MsgTTL: number
268
268
 
@@ -1782,7 +1782,7 @@ export interface CreateEnvironmentRequest {
1782
1782
  EnvironmentId: string
1783
1783
 
1784
1784
  /**
1785
- * 未消费消息过期时间,单位:秒,最小60,最大1296000,(15天)。
1785
+ * 未消费消息过期时间,单位:秒,取值范围:60秒~1天。
1786
1786
  */
1787
1787
  MsgTTL: number
1788
1788
 
@@ -2775,7 +2775,7 @@ export interface CreateTopicRequest {
2775
2775
  TopicName: string
2776
2776
 
2777
2777
  /**
2778
- * 0:非分区topic,无分区;非0:具体分区topic的分区数,最大不允许超过128。
2778
+ * 入参为1,即是创建非分区topic,无分区;入参大于1,表示分区topic的分区数,最大不允许超过128。
2779
2779
  */
2780
2780
  Partitions: number
2781
2781
 
@@ -2785,7 +2785,8 @@ export interface CreateTopicRequest {
2785
2785
  Remark?: string
2786
2786
 
2787
2787
  /**
2788
- * 0: 普通消息;
2788
+ * 该入参将逐步弃用,可切换至PulsarTopicType参数
2789
+ 0: 普通消息;
2789
2790
  1 :全局顺序消息;
2790
2791
  2 :局部顺序消息;
2791
2792
  3 :重试队列;
@@ -2834,12 +2835,10 @@ export interface DescribeTopicsRequest {
2834
2835
 
2835
2836
  /**
2836
2837
  * topic类型描述:
2837
- 0:普通消息;
2838
- 1:全局顺序消息;
2839
- 2:局部顺序消息;
2840
- 3:重试队列;
2841
- 4:死信队列;
2842
- 5:事务消息。
2838
+ 0:非持久非分区主题类型;
2839
+ 1:非持久分区主题类型;
2840
+ 2:持久非分区主题类型;
2841
+ 3:持久分区主题类型;
2843
2842
  */
2844
2843
  TopicType?: number
2845
2844
 
@@ -2855,6 +2854,13 @@ export interface DescribeTopicsRequest {
2855
2854
  必选:否
2856
2855
  */
2857
2856
  Filters?: Array<Filter>
2857
+
2858
+ /**
2859
+ * 创建来源:
2860
+ 1:用户创建
2861
+ 2:系统创建
2862
+ */
2863
+ TopicCreator?: number
2858
2864
  }
2859
2865
 
2860
2866
  /**
@@ -3973,7 +3979,7 @@ export interface CreateTopicResponse {
3973
3979
  TopicName: string
3974
3980
 
3975
3981
  /**
3976
- * 0:非分区topic,无分区;非0:具体分区topic的分区数。
3982
+ * 0或1:非分区topic,无分区;大于1:具体分区topic的分区数。(存量非分区主题返回0,增量非分区主题返回1)
3977
3983
  */
3978
3984
  Partitions: number
3979
3985
 
@@ -3989,7 +3995,6 @@ export interface CreateTopicResponse {
3989
3995
  2 :局部顺序消息;
3990
3996
  3 :重试队列;
3991
3997
  4 :死信队列;
3992
- 5 :事务消息。
3993
3998
  注意:此字段可能返回 null,表示取不到有效值。
3994
3999
  */
3995
4000
  TopicType: number
@@ -275,8 +275,28 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
275
275
  */
276
276
  DescribeAMQPExchanges(req: DescribeAMQPExchangesRequest, cb?: (error: string, rep: DescribeAMQPExchangesResponse) => void): Promise<DescribeAMQPExchangesResponse>;
277
277
  /**
278
- * 接收发送到指定 topic 中的消息
279
- */
278
+ * 接收发送到指定 topic 中的消息,当 Topic 中没有消息但还去尝试调用该接口时,会抛出 ReceiveTimeout 的异常。
279
+
280
+ 如何使用 BatchReceivePolicy:
281
+
282
+ BatchReceive 接口提供了如下三个参数:
283
+
284
+ ● MaxNumMessages: 即每次使用 BatchReceive 的时候,最多一次Receive接口返回多少条消息。
285
+ ● MaxNumBytes:即每次使用 BatchReceive 的时候,最多一次Receive接口返回多大内容的消息,单位是:bytes。
286
+ ● Timeout:即每次使用 BatchReceive 的时候,最多一次 Receive 接口的超时时间是多久,单位是:MS。
287
+
288
+ 默认如果上述三个参数都不指定,即关闭 BatchReceive 的特性。如果三个参数中的任意一个参数指定的数值大于 0,即开启 BatchReceive。BatchReceive 的结束条件为到达上述三个参数中任意一个指定的阈值。
289
+
290
+ 注意:MaxNumMessages 和 MaxNumBytes 每一次接收的最大消息同时受限于 ReceiveQueueSize 的大小,如果 ReceiveQueueSize 的大小设置为 5,MaxNumMessages 设置为10,那么一次 BatchReceive 接收的最多的消息是 5条,而不是10条。
291
+
292
+
293
+
294
+ BatchReceivePolicy 的接口会一次性返回多条消息:
295
+
296
+ 1. 多条消息的内容之间使用特殊字符 '###' 来进行分割,业务侧接收到消息之后,可以利用不同语言提供的 Split 工具分割不同的消息。
297
+ 2. 多条消息的 MessageID 之间使用特殊字符 '###' 来进行分割,业务侧接收到消息之后,可以利用不同语言提供的 Split 工具分割不同的消息。(用于在调用 AcknowledgeMessage 接口中填入所需要的 MessageID 字段信息)
298
+
299
+ */
280
300
  ReceiveMessage(req: ReceiveMessageRequest, cb?: (error: string, rep: ReceiveMessageResponse) => void): Promise<ReceiveMessageResponse>;
281
301
  /**
282
302
  * 更新Amqp交换机
@@ -430,8 +430,28 @@ class Client extends TencentCloudCommon.AbstractClient {
430
430
  return this.request("DescribeAMQPExchanges", req, cb);
431
431
  }
432
432
  /**
433
- * 接收发送到指定 topic 中的消息
434
- */
433
+ * 接收发送到指定 topic 中的消息,当 Topic 中没有消息但还去尝试调用该接口时,会抛出 ReceiveTimeout 的异常。
434
+
435
+ 如何使用 BatchReceivePolicy:
436
+
437
+ BatchReceive 接口提供了如下三个参数:
438
+
439
+ ● MaxNumMessages: 即每次使用 BatchReceive 的时候,最多一次Receive接口返回多少条消息。
440
+ ● MaxNumBytes:即每次使用 BatchReceive 的时候,最多一次Receive接口返回多大内容的消息,单位是:bytes。
441
+ ● Timeout:即每次使用 BatchReceive 的时候,最多一次 Receive 接口的超时时间是多久,单位是:MS。
442
+
443
+ 默认如果上述三个参数都不指定,即关闭 BatchReceive 的特性。如果三个参数中的任意一个参数指定的数值大于 0,即开启 BatchReceive。BatchReceive 的结束条件为到达上述三个参数中任意一个指定的阈值。
444
+
445
+ 注意:MaxNumMessages 和 MaxNumBytes 每一次接收的最大消息同时受限于 ReceiveQueueSize 的大小,如果 ReceiveQueueSize 的大小设置为 5,MaxNumMessages 设置为10,那么一次 BatchReceive 接收的最多的消息是 5条,而不是10条。
446
+
447
+
448
+
449
+ BatchReceivePolicy 的接口会一次性返回多条消息:
450
+
451
+ 1. 多条消息的内容之间使用特殊字符 '###' 来进行分割,业务侧接收到消息之后,可以利用不同语言提供的 Split 工具分割不同的消息。
452
+ 2. 多条消息的 MessageID 之间使用特殊字符 '###' 来进行分割,业务侧接收到消息之后,可以利用不同语言提供的 Split 工具分割不同的消息。(用于在调用 AcknowledgeMessage 接口中填入所需要的 MessageID 字段信息)
453
+
454
+ */
435
455
  async ReceiveMessage(req, cb) {
436
456
  return this.request("ReceiveMessage", req, cb);
437
457
  }
@@ -205,7 +205,7 @@ export interface ModifyEnvironmentAttributesRequest {
205
205
  */
206
206
  EnvironmentId: string;
207
207
  /**
208
- * 未消费消息过期时间,单位:秒,最大1296000。
208
+ * 未消费消息过期时间,单位:秒,范围60秒~1天。
209
209
  */
210
210
  MsgTTL: number;
211
211
  /**
@@ -1491,7 +1491,7 @@ export interface CreateEnvironmentRequest {
1491
1491
  */
1492
1492
  EnvironmentId: string;
1493
1493
  /**
1494
- * 未消费消息过期时间,单位:秒,最小60,最大1296000,(15天)。
1494
+ * 未消费消息过期时间,单位:秒,取值范围:60秒~1天。
1495
1495
  */
1496
1496
  MsgTTL: number;
1497
1497
  /**
@@ -2333,7 +2333,7 @@ export interface CreateTopicRequest {
2333
2333
  */
2334
2334
  TopicName: string;
2335
2335
  /**
2336
- * 0:非分区topic,无分区;非0:具体分区topic的分区数,最大不允许超过128。
2336
+ * 入参为1,即是创建非分区topic,无分区;入参大于1,表示分区topic的分区数,最大不允许超过128。
2337
2337
  */
2338
2338
  Partitions: number;
2339
2339
  /**
@@ -2341,7 +2341,8 @@ export interface CreateTopicRequest {
2341
2341
  */
2342
2342
  Remark?: string;
2343
2343
  /**
2344
- * 0: 普通消息;
2344
+ * 该入参将逐步弃用,可切换至PulsarTopicType参数
2345
+ 0: 普通消息;
2345
2346
  1 :全局顺序消息;
2346
2347
  2 :局部顺序消息;
2347
2348
  3 :重试队列;
@@ -2383,12 +2384,10 @@ export interface DescribeTopicsRequest {
2383
2384
  Limit?: number;
2384
2385
  /**
2385
2386
  * topic类型描述:
2386
- 0:普通消息;
2387
- 1:全局顺序消息;
2388
- 2:局部顺序消息;
2389
- 3:重试队列;
2390
- 4:死信队列;
2391
- 5:事务消息。
2387
+ 0:非持久非分区主题类型;
2388
+ 1:非持久分区主题类型;
2389
+ 2:持久非分区主题类型;
2390
+ 3:持久分区主题类型;
2392
2391
  */
2393
2392
  TopicType?: number;
2394
2393
  /**
@@ -2402,6 +2401,12 @@ export interface DescribeTopicsRequest {
2402
2401
  必选:否
2403
2402
  */
2404
2403
  Filters?: Array<Filter>;
2404
+ /**
2405
+ * 创建来源:
2406
+ 1:用户创建
2407
+ 2:系统创建
2408
+ */
2409
+ TopicCreator?: number;
2405
2410
  }
2406
2411
  /**
2407
2412
  * DeleteEnvironments返回参数结构体
@@ -3350,7 +3355,7 @@ export interface CreateTopicResponse {
3350
3355
  */
3351
3356
  TopicName: string;
3352
3357
  /**
3353
- * 0:非分区topic,无分区;非0:具体分区topic的分区数。
3358
+ * 0或1:非分区topic,无分区;大于1:具体分区topic的分区数。(存量非分区主题返回0,增量非分区主题返回1)
3354
3359
  */
3355
3360
  Partitions: number;
3356
3361
  /**
@@ -3364,7 +3369,6 @@ export interface CreateTopicResponse {
3364
3369
  2 :局部顺序消息;
3365
3370
  3 :重试队列;
3366
3371
  4 :死信队列;
3367
- 5 :事务消息。
3368
3372
  注意:此字段可能返回 null,表示取不到有效值。
3369
3373
  */
3370
3374
  TopicType: number;