gnodet-bot commented on code in PR #30563:
URL: https://github.com/apache/camel/pull/30563#discussion_r4654659013
##########
components/camel-alibaba/camel-alibaba-mns/src/main/java/org/apache/camel/component/alibaba/mns/constants/MNSHeaders.java:
##########
@@ -20,33 +20,39 @@
public final class MNSHeaders {
- @Metadata(label = "common", description = "The MNS message id", javaType =
"String")
+ @Metadata(label = "common", description = "The ID of the message.",
javaType = "String")
public static final String MESSAGE_ID = "CamelAlibabaMnsMessageId";
- @Metadata(label = "common", description = "The MNS receipt handle",
javaType = "String")
+ @Metadata(label = "common", description = "The receipt handle of the
message for deleteMessage. The consumer sets it for a"
+ + " received message. If this
header is not set, the producer uses an exchange"
+ + " property of the same name.",
+ javaType = "String")
public static final String RECEIPT_HANDLE = "CamelAlibabaMnsReceiptHandle";
@Metadata(label = "common", description = "The MD5 digest of the message
body", javaType = "String")
public static final String MESSAGE_BODY_MD5 =
"CamelAlibabaMnsMessageBodyMd5";
- @Metadata(label = "producer", description = "Delay in seconds before the
message becomes visible", javaType = "Integer")
+ @Metadata(label = "producer", description = "The delay in seconds for
sendMessage before the message becomes visible. The"
+ + " value must be from 0 to
604800. If this header is not set, the"
+ + " DelaySeconds of the queue
applies.",
+ javaType = "Integer")
public static final String DELAY_SECONDS = "CamelAlibabaMnsDelaySeconds";
- @Metadata(label = "producer", description = "Message priority", javaType =
"Integer")
+ @Metadata(label = "producer", description = "The priority of the message
for sendMessage. The consumer sets it for a"
+ + " received message.",
+ javaType = "Integer")
public static final String PRIORITY = "CamelAlibabaMnsPriority";
- @Metadata(label = "producer", description = "Message tag for topic publish
operations", javaType = "String")
+ @Metadata(label = "producer", description = "The tag of the message for
publishMessage.", javaType = "String")
Review Comment:
The 16-character limit was dropped. [Alibaba Cloud's official limits
page](https://www.alibabacloud.com/help/en/mns/product-overview/limits) states:
_"Message filtering tag — Up to 16 characters."_ Removing this constraint
leaves users with no indication that values longer than 16 characters will be
rejected at the API level.
```suggestion
@Metadata(label = "producer", description = "The tag of the message for
publishMessage. Simple Message Queue accepts at most 16 characters.", javaType
= "String")
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]