SecretId
and SecretKey
so that you can create, delete, and view queues, topics, and subscriptions.Attribute | Description |
maxMsgHeapNum | Maximum number of retained messages, i.e., number of messages that can be stored in a queue. It represents the queue storage and retention capacity. |
pollingWaitSeconds | Long-Polling waiting time for message receipt, which ranges from 0 to 30 seconds. It indicates the default time it takes to receive a message during message consumption. For example, when this attribute is set to 10, if there are no messages during message consumption, the result will be returned after 10 seconds of waiting by default; otherwise, the result will be immediately returned. You can customize the waiting time when receiving messages, which will take precedence over this attribute. |
visibilityTimeout | Message visibility timeout period. After a message is obtained by a consumer, there will be an invisibility period, during which other consumers cannot get this message. This value ranges from 1 to 43,200 seconds (12 hours), and the default value is 30. |
maxMsgSize | Maximum message size, which ranges from 1,024 to 1,048,576 bytes (i.e., 1–1,024 KB). The default value is 65,536. |
msgRetentionSeconds | Message lifecycle, i.e., message retention time period in queue, which ranges from 60 to 1,296,000 seconds (1 minute to 15 days). The default value is 345,600 (4 days). |
createTime | Queue creation time. A Unix timestamp accurate down to the second will be returned. |
lastModifyTime | Time when the queue attribute is last modified. A Unix timestamp accurate down to the second will be returned. |
activeMsgNum | Total number of messages in Active state (not being consumed) in queue, which is an approximate value. |
inactiveMsgNum | Total number of messages in Inactive state (being consumed) in queue, which is an approximate value. |
rewindSeconds | Maximum time range during which a message can be rewound in the queue, which ranges from 0 to 43,200 seconds. 0 indicates that message rewind is disabled. |
rewindmsgNum | Number of retained messages which have been deleted by the DelMsg API but are still within their rewind time range. |
minMsgTime | Minimum unconsumed time of message in seconds. |
delayMsgNum | Number of delayed messages. |
Attribute | Description |
msgCount | Number of messages currently retained in topic (number of retained messages) |
maxMsgSize | Maximum message size, which ranges from 1,024 to 1,048,576 bytes (i.e., 1–1,024 KB). The default value is 65,536. |
msgRetentionSeconds | Maximum lifecycle of message in topic. After the period specified by this parameter has elapsed since a message is sent to the topic, the message will be deleted no matter whether it has been successfully pushed to the user. This parameter is measured in seconds and defaulted to one day (86,400 seconds), which cannot be modified. |
createTime | Topic creation time. A Unix timestamp accurate down to the second will be returned. |
lastModifyTime | Time when the topic attribute is last modified. A Unix timestamp accurate down to the second will be returned. |
filterType | Filtering policy selected when a subscription is created: If filterType is 1, filterTag will be used for filtering.If filterType is 2, bindingKey will be used for filtering. |
Was this page helpful?