This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new b1919763fb4b CAMEL-23832: camel-alibaba-mns - improve the component
and option descriptions (#30563)
b1919763fb4b is described below
commit b1919763fb4b3cc36533a5a16bb19ac7aa7b31f2
Author: Saravanakumar Selvaraj <[email protected]>
AuthorDate: Sun Nov 22 13:40:54 2026 +0000
CAMEL-23832: camel-alibaba-mns - improve the component and option
descriptions (#30563)
The component description and 19 option and header descriptions of
alibaba-mns are rewritten. They use the current name of the service, Simple
Message Queue (formerly MNS), and say which side reads a value, what
replaces it, and which limits Simple Message Queue has (such as one
filtering tag of up to 16 characters per message). The text of mnsClient
says that a set or autowired client replaces the region and accountEndpoint
options, and that the Camel endpoint does not close such a client.
Documentation only, no behavior change. The component JSON, the catalog
copy, the doc page header and the DSL are regenerated. camel-alibaba-mns is
marked as done in tasks/component-descriptions.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
.../camel/catalog/components/alibaba-mns.json | 40 ++--
.../camel/catalog/docs/alibaba-mns-component.adoc | 2 +-
.../camel/component/alibaba/mns/alibaba-mns.json | 40 ++--
.../src/main/docs/alibaba-mns-component.adoc | 2 +-
.../camel/component/alibaba/mns/MNSEndpoint.java | 50 +++--
.../alibaba/mns/constants/MNSHeaders.java | 30 ++-
.../component/ComponentsBuilderFactory.java | 3 +-
.../dsl/AlibabaMnsComponentBuilderFactory.java | 6 +-
.../builder/endpoint/EndpointHeaderBuilders.java | 3 +-
.../builder/endpoint/StaticEndpointBuilders.java | 14 +-
.../endpoint/dsl/MNSEndpointBuilderFactory.java | 223 +++++++++++++++------
tasks/component-descriptions.md | 2 +-
12 files changed, 273 insertions(+), 142 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/alibaba-mns.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/alibaba-mns.json
index 9b1319c25668..b0023a194ecb 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/alibaba-mns.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/alibaba-mns.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "alibaba-mns",
"title": "Alibaba Message Service (MNS)",
- "description": "Send and receive messages to\/from Alibaba Cloud Message
Service (MNS).",
+ "description": "Send and receive messages using Alibaba Cloud Simple
Message Queue (SMQ, formerly MNS).",
"deprecated": false,
"firstVersion": "4.23.0",
"label": "cloud,messaging",
@@ -31,14 +31,14 @@
"healthCheckProducerEnabled": { "index": 4, "kind": "property",
"displayName": "Health Check Producer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all producer based health checks
from this component. Notice: Camel has by default disabled all producer based
health-checks. You can turn on producer [...]
},
"headers": {
- "CamelAlibabaMnsMessageId": { "index": 0, "kind": "header", "displayName":
"", "group": "common", "label": "common", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The MNS message id", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#MESSAGE_ID" },
- "CamelAlibabaMnsReceiptHandle": { "index": 1, "kind": "header",
"displayName": "", "group": "common", "label": "common", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The MNS receipt handle", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#RECEIPT_HANDLE" },
+ "CamelAlibabaMnsMessageId": { "index": 0, "kind": "header", "displayName":
"", "group": "common", "label": "common", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The ID of the message.", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#MESSAGE_ID" },
+ "CamelAlibabaMnsReceiptHandle": { "index": 1, "kind": "header",
"displayName": "", "group": "common", "label": "common", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"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.", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MN [...]
"CamelAlibabaMnsMessageBodyMd5": { "index": 2, "kind": "header",
"displayName": "", "group": "common", "label": "common", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The MD5 digest of the message body", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#MESSAGE_BODY_MD5"
},
- "CamelAlibabaMnsDelaySeconds": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "Integer", "deprecated": false, "autowired": false, "secret":
false, "description": "Delay in seconds before the message becomes visible",
"constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#DELAY_SECONDS" },
- "CamelAlibabaMnsPriority": { "index": 4, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"Integer", "deprecated": false, "autowired": false, "secret": false,
"description": "Message priority", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#PRIORITY" },
- "CamelAlibabaMnsMessageTag": { "index": 5, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "Message tag for topic publish operations", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#MESSAGE_TAG" },
- "CamelAlibabaMnsOperation": { "index": 6, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The operation to invoke, overriding the operation the endpoint
resolves. The exchange property of the same name takes precedence over this
header.", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#OPERATION" },
- "CamelAlibabaMnsTopicName": { "index": 7, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the topic to publish to, overriding the one the
endpoint resolves. The exchange property of the same name takes precedence over
this header.", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#TOPIC_NAME" },
+ "CamelAlibabaMnsDelaySeconds": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "Integer", "deprecated": false, "autowired": false, "secret":
false, "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.", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHe [...]
+ "CamelAlibabaMnsPriority": { "index": 4, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"Integer", "deprecated": false, "autowired": false, "secret": false,
"description": "The priority of the message for sendMessage. The consumer sets
it for a received message.", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#PRIORITY" },
+ "CamelAlibabaMnsMessageTag": { "index": 5, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The tag of the message for publishMessage. Simple Message Queue
accepts at most 16 characters.", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#MESSAGE_TAG" },
+ "CamelAlibabaMnsOperation": { "index": 6, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The operation that the producer performs. This header replaces
the operation option, and an exchange property of the same name replaces
both.", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#OPERATION" },
+ "CamelAlibabaMnsTopicName": { "index": 7, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the topic for publishMessage. This header replaces
the topicName option, and an exchange property of the same name replaces
both.", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#TOPIC_NAME" },
"CamelAlibabaMnsDequeueCount": { "index": 8, "kind": "header",
"displayName": "", "group": "consumer", "label": "consumer", "required": false,
"javaType": "Integer", "deprecated": false, "autowired": false, "secret":
false, "description": "Number of times the message has been dequeued",
"constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#DEQUEUE_COUNT" },
"CamelAlibabaMnsEnqueueTime": { "index": 9, "kind": "header",
"displayName": "", "group": "consumer", "label": "consumer", "required": false,
"javaType": "java.util.Date", "deprecated": false, "autowired": false,
"secret": false, "description": "Time when the message was enqueued",
"constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#ENQUEUE_TIME" },
"CamelAlibabaMnsNextVisibleTime": { "index": 10, "kind": "header",
"displayName": "", "group": "consumer", "label": "consumer", "required": false,
"javaType": "java.util.Date", "deprecated": false, "autowired": false,
"secret": false, "description": "Next time the message becomes visible",
"constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#NEXT_VISIBLE_TIME"
},
@@ -50,21 +50,21 @@
"producerOut": { "carriers": [ "unchanged" ], "description": "Unchanged:
the message id and the MD5 of the body are set in headers (and also as exchange
properties, as before), and the request id as an exchange property" }
},
"properties": {
- "queueName": { "index": 0, "kind": "path", "displayName": "Queue Name",
"group": "common", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "Queue name, or topic name when using the topic URI syntax" },
- "accountEndpoint": { "index": 1, "kind": "parameter", "displayName":
"Account Endpoint", "group": "common", "label": "", "required": true, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "MNS account endpoint, for example
https:\/\/123456.mns.cn-hangzhou.aliyuncs.com" },
- "operation": { "index": 2, "kind": "parameter", "displayName":
"Operation", "group": "common", "label": "", "required": false, "type": "enum",
"javaType": "java.lang.String", "enum": [ "sendMessage", "deleteMessage",
"publishMessage" ], "deprecated": false, "autowired": false, "secret": false,
"description": "Operation to perform by the producer. The consumer does not use
it: it receives the messages of the queue" },
- "region": { "index": 3, "kind": "parameter", "displayName": "Region",
"group": "common", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "Alibaba Cloud region" },
- "topicName": { "index": 4, "kind": "parameter", "displayName": "Topic
Name", "group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Topic name for publishMessage operations" },
- "waitSeconds": { "index": 5, "kind": "parameter", "displayName": "Wait
Seconds", "group": "common", "label": "", "required": false, "type": "integer",
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": 0, "description": "Long polling wait time in seconds when
receiving messages" },
- "deleteAfterRead": { "index": 6, "kind": "parameter", "displayName":
"Delete After Read", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Delete message from the queue after it has been processed" },
- "maxMessagesPerPoll": { "index": 7, "kind": "parameter", "displayName":
"Max Messages Per Poll", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "description": "Maximum number of
messages to receive per poll" },
+ "queueName": { "index": 0, "kind": "path", "displayName": "Queue Name",
"group": "common", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the queue, or of the topic for a topic endpoint
such as alibaba-mns:topic:myTopic. The CamelAlibabaMnsQueueName exchange
property replaces the name of the queue for sendMessage and deleteMessage." },
+ "accountEndpoint": { "index": 1, "kind": "parameter", "displayName":
"Account Endpoint", "group": "common", "label": "", "required": true, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "The endpoint of Simple Message Queue
for the Alibaba Cloud account, for example
https:\/\/123456.mns.cn-hangzhou.aliyuncs.com. The value must start with
http:\/\/ or https:\/\/." },
+ "operation": { "index": 2, "kind": "parameter", "displayName":
"Operation", "group": "common", "label": "", "required": false, "type": "enum",
"javaType": "java.lang.String", "enum": [ "sendMessage", "deleteMessage",
"publishMessage" ], "deprecated": false, "autowired": false, "secret": false,
"description": "The operation that the producer performs. If not set, the
producer performs publishMessage for a topic endpoint and sendMessage
otherwise. The CamelAlibabaMnsOperation header re [...]
+ "region": { "index": 3, "kind": "parameter", "displayName": "Region",
"group": "common", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The region ID of Simple Message Queue, for example
cn-hangzhou." },
+ "topicName": { "index": 4, "kind": "parameter", "displayName": "Topic
Name", "group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The name of the topic for publishMessage. If
not set, a topic endpoint takes the name of the topic from its URI. The
CamelAlibabaMnsTopicName header replaces this option, and an exchange property
of the same name replaces both." },
+ "waitSeconds": { "index": 5, "kind": "parameter", "displayName": "Wait
Seconds", "group": "common", "label": "", "required": false, "type": "integer",
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": 0, "description": "The long polling wait time in seconds when
the consumer receives messages. If 0 or less, the PollingWaitSeconds of the
queue applies. Simple Message Queue accepts a value of at most 30." },
+ "deleteAfterRead": { "index": 6, "kind": "parameter", "displayName":
"Delete After Read", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether to delete the message from the queue after it is processed
successfully." },
+ "maxMessagesPerPoll": { "index": 7, "kind": "parameter", "displayName":
"Max Messages Per Poll", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "description": "The maximum number
of messages that the consumer receives in one poll. Simple Message Queue
accepts a value of at most 16. The consumer treats a value of 0 or less as 1."
},
"sendEmptyMessageWhenIdle": { "index": 8, "kind": "parameter",
"displayName": "Send Empty Message When Idle", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
false, "description": "If the polling consumer did not poll any files, you can
enable this option to send an empty message (no body) instead." },
"bridgeErrorHandler": { "index": 9, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions (if possible) occurred
while the Camel consumer is trying to pickup incoming [...]
"exceptionHandler": { "index": 10, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By de [...]
"exchangePattern": { "index": 11, "kind": "parameter", "displayName":
"Exchange Pattern", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "enum", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ],
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the exchange pattern when the consumer creates an exchange." },
"pollStrategy": { "index": 12, "kind": "parameter", "displayName": "Poll
Strategy", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.PollingConsumerPollStrategy", "deprecated": false,
"autowired": false, "secret": false, "description": "A pluggable
org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your
custom implementation to control error handling usually occurred during the po
[...]
"lazyStartProducer": { "index": 13, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produ [...]
- "mnsClient": { "index": 14, "kind": "parameter", "displayName": "MNS
Client", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "com.aliyun.mns.client.MNSClient", "deprecated": false,
"autowired": true, "secret": false, "description": "Autowire an existing
MNSClient instance" },
+ "mnsClient": { "index": 14, "kind": "parameter", "displayName": "MNS
Client", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "com.aliyun.mns.client.MNSClient", "deprecated": false,
"autowired": true, "secret": false, "description": "To use a custom
com.aliyun.mns.client.MNSClient. When this option is set or autowired, the
region and accountEndpoint options are not used. The Camel endpoint does not
close a client that is set or autowired." },
"backoffErrorThreshold": { "index": 15, "kind": "parameter",
"displayName": "Backoff Error Threshold", "group": "scheduler", "label":
"consumer,scheduler", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "description": "The
number of subsequent error polls (failed due some error) that should happen
before the backoffMultipler should kick-in." },
"backoffIdleThreshold": { "index": 16, "kind": "parameter", "displayName":
"Backoff Idle Threshold", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "The number of subsequent
idle polls that should happen before the backoffMultipler should kick-in." },
"backoffMultiplier": { "index": 17, "kind": "parameter", "displayName":
"Backoff Multiplier", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "To let the scheduled
polling consumer backoff if there has been a number of subsequent idles\/errors
in a row. The multiplier is then the number of polls that will be skipped
before the next actual attempt is h [...]
@@ -80,8 +80,8 @@
"startScheduler": { "index": 27, "kind": "parameter", "displayName":
"Start Scheduler", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Whether the scheduler should be auto started." },
"timeUnit": { "index": 28, "kind": "parameter", "displayName": "Time
Unit", "group": "scheduler", "label": "consumer,scheduler", "required": false,
"type": "enum", "javaType": "java.util.concurrent.TimeUnit", "enum": [
"NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS",
"DAYS" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "MILLISECONDS", "description": "Time unit for initialDelay and
delay options." },
"useFixedDelay": { "index": 29, "kind": "parameter", "displayName": "Use
Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in
JDK for details." },
- "accessKey": { "index": 30, "kind": "parameter", "displayName": "Access
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "Access key for the
cloud user" },
- "secretKey": { "index": 31, "kind": "parameter", "displayName": "Secret
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "Secret key for the
cloud user" },
- "serviceKeys": { "index": 32, "kind": "parameter", "displayName": "Service
Keys", "group": "security", "label": "security", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.alibaba.common.models.ServiceKeys", "deprecated":
false, "autowired": false, "secret": true, "security": "secret", "description":
"Configuration object for cloud service authentication" }
+ "accessKey": { "index": 30, "kind": "parameter", "displayName": "Access
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "The AccessKey ID
of the AccessKey pair for Simple Message Queue. If not set, the accessKey of
the serviceKeys option is used." },
+ "secretKey": { "index": 31, "kind": "parameter", "displayName": "Secret
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "The AccessKey
secret of the AccessKey pair for Simple Message Queue. If not set, the
secretKey of the serviceKeys option is used." },
+ "serviceKeys": { "index": 32, "kind": "parameter", "displayName": "Service
Keys", "group": "security", "label": "security", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.alibaba.common.models.ServiceKeys", "deprecated":
false, "autowired": false, "secret": true, "security": "secret", "description":
"The AccessKey pair as an
org.apache.camel.component.alibaba.common.models.ServiceKeys. Its accessKey and
its secretKey are each used when the option of the [...]
}
}
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/alibaba-mns-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/alibaba-mns-component.adoc
index 4123227deb08..ad0f531f41b8 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/alibaba-mns-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/alibaba-mns-component.adoc
@@ -2,7 +2,7 @@
:doctitle: Alibaba Message Service (MNS)
:shortname: alibaba-mns
:artifactid: camel-alibaba-mns
-:description: Send and receive messages to/from Alibaba Cloud Message Service
(MNS).
+:description: Send and receive messages using Alibaba Cloud Simple Message
Queue (SMQ, formerly MNS).
:since: 4.23
:supportlevel: Preview
:tabs-sync-option:
diff --git
a/components/camel-alibaba/camel-alibaba-mns/src/generated/resources/META-INF/org/apache/camel/component/alibaba/mns/alibaba-mns.json
b/components/camel-alibaba/camel-alibaba-mns/src/generated/resources/META-INF/org/apache/camel/component/alibaba/mns/alibaba-mns.json
index 9b1319c25668..b0023a194ecb 100644
---
a/components/camel-alibaba/camel-alibaba-mns/src/generated/resources/META-INF/org/apache/camel/component/alibaba/mns/alibaba-mns.json
+++
b/components/camel-alibaba/camel-alibaba-mns/src/generated/resources/META-INF/org/apache/camel/component/alibaba/mns/alibaba-mns.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "alibaba-mns",
"title": "Alibaba Message Service (MNS)",
- "description": "Send and receive messages to\/from Alibaba Cloud Message
Service (MNS).",
+ "description": "Send and receive messages using Alibaba Cloud Simple
Message Queue (SMQ, formerly MNS).",
"deprecated": false,
"firstVersion": "4.23.0",
"label": "cloud,messaging",
@@ -31,14 +31,14 @@
"healthCheckProducerEnabled": { "index": 4, "kind": "property",
"displayName": "Health Check Producer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all producer based health checks
from this component. Notice: Camel has by default disabled all producer based
health-checks. You can turn on producer [...]
},
"headers": {
- "CamelAlibabaMnsMessageId": { "index": 0, "kind": "header", "displayName":
"", "group": "common", "label": "common", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The MNS message id", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#MESSAGE_ID" },
- "CamelAlibabaMnsReceiptHandle": { "index": 1, "kind": "header",
"displayName": "", "group": "common", "label": "common", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The MNS receipt handle", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#RECEIPT_HANDLE" },
+ "CamelAlibabaMnsMessageId": { "index": 0, "kind": "header", "displayName":
"", "group": "common", "label": "common", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The ID of the message.", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#MESSAGE_ID" },
+ "CamelAlibabaMnsReceiptHandle": { "index": 1, "kind": "header",
"displayName": "", "group": "common", "label": "common", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"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.", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MN [...]
"CamelAlibabaMnsMessageBodyMd5": { "index": 2, "kind": "header",
"displayName": "", "group": "common", "label": "common", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The MD5 digest of the message body", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#MESSAGE_BODY_MD5"
},
- "CamelAlibabaMnsDelaySeconds": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "Integer", "deprecated": false, "autowired": false, "secret":
false, "description": "Delay in seconds before the message becomes visible",
"constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#DELAY_SECONDS" },
- "CamelAlibabaMnsPriority": { "index": 4, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"Integer", "deprecated": false, "autowired": false, "secret": false,
"description": "Message priority", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#PRIORITY" },
- "CamelAlibabaMnsMessageTag": { "index": 5, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "Message tag for topic publish operations", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#MESSAGE_TAG" },
- "CamelAlibabaMnsOperation": { "index": 6, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The operation to invoke, overriding the operation the endpoint
resolves. The exchange property of the same name takes precedence over this
header.", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#OPERATION" },
- "CamelAlibabaMnsTopicName": { "index": 7, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the topic to publish to, overriding the one the
endpoint resolves. The exchange property of the same name takes precedence over
this header.", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#TOPIC_NAME" },
+ "CamelAlibabaMnsDelaySeconds": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "Integer", "deprecated": false, "autowired": false, "secret":
false, "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.", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHe [...]
+ "CamelAlibabaMnsPriority": { "index": 4, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"Integer", "deprecated": false, "autowired": false, "secret": false,
"description": "The priority of the message for sendMessage. The consumer sets
it for a received message.", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#PRIORITY" },
+ "CamelAlibabaMnsMessageTag": { "index": 5, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The tag of the message for publishMessage. Simple Message Queue
accepts at most 16 characters.", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#MESSAGE_TAG" },
+ "CamelAlibabaMnsOperation": { "index": 6, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The operation that the producer performs. This header replaces
the operation option, and an exchange property of the same name replaces
both.", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#OPERATION" },
+ "CamelAlibabaMnsTopicName": { "index": 7, "kind": "header", "displayName":
"", "group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the topic for publishMessage. This header replaces
the topicName option, and an exchange property of the same name replaces
both.", "constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#TOPIC_NAME" },
"CamelAlibabaMnsDequeueCount": { "index": 8, "kind": "header",
"displayName": "", "group": "consumer", "label": "consumer", "required": false,
"javaType": "Integer", "deprecated": false, "autowired": false, "secret":
false, "description": "Number of times the message has been dequeued",
"constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#DEQUEUE_COUNT" },
"CamelAlibabaMnsEnqueueTime": { "index": 9, "kind": "header",
"displayName": "", "group": "consumer", "label": "consumer", "required": false,
"javaType": "java.util.Date", "deprecated": false, "autowired": false,
"secret": false, "description": "Time when the message was enqueued",
"constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#ENQUEUE_TIME" },
"CamelAlibabaMnsNextVisibleTime": { "index": 10, "kind": "header",
"displayName": "", "group": "consumer", "label": "consumer", "required": false,
"javaType": "java.util.Date", "deprecated": false, "autowired": false,
"secret": false, "description": "Next time the message becomes visible",
"constantName":
"org.apache.camel.component.alibaba.mns.constants.MNSHeaders#NEXT_VISIBLE_TIME"
},
@@ -50,21 +50,21 @@
"producerOut": { "carriers": [ "unchanged" ], "description": "Unchanged:
the message id and the MD5 of the body are set in headers (and also as exchange
properties, as before), and the request id as an exchange property" }
},
"properties": {
- "queueName": { "index": 0, "kind": "path", "displayName": "Queue Name",
"group": "common", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "Queue name, or topic name when using the topic URI syntax" },
- "accountEndpoint": { "index": 1, "kind": "parameter", "displayName":
"Account Endpoint", "group": "common", "label": "", "required": true, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "MNS account endpoint, for example
https:\/\/123456.mns.cn-hangzhou.aliyuncs.com" },
- "operation": { "index": 2, "kind": "parameter", "displayName":
"Operation", "group": "common", "label": "", "required": false, "type": "enum",
"javaType": "java.lang.String", "enum": [ "sendMessage", "deleteMessage",
"publishMessage" ], "deprecated": false, "autowired": false, "secret": false,
"description": "Operation to perform by the producer. The consumer does not use
it: it receives the messages of the queue" },
- "region": { "index": 3, "kind": "parameter", "displayName": "Region",
"group": "common", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "Alibaba Cloud region" },
- "topicName": { "index": 4, "kind": "parameter", "displayName": "Topic
Name", "group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Topic name for publishMessage operations" },
- "waitSeconds": { "index": 5, "kind": "parameter", "displayName": "Wait
Seconds", "group": "common", "label": "", "required": false, "type": "integer",
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": 0, "description": "Long polling wait time in seconds when
receiving messages" },
- "deleteAfterRead": { "index": 6, "kind": "parameter", "displayName":
"Delete After Read", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Delete message from the queue after it has been processed" },
- "maxMessagesPerPoll": { "index": 7, "kind": "parameter", "displayName":
"Max Messages Per Poll", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "description": "Maximum number of
messages to receive per poll" },
+ "queueName": { "index": 0, "kind": "path", "displayName": "Queue Name",
"group": "common", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the queue, or of the topic for a topic endpoint
such as alibaba-mns:topic:myTopic. The CamelAlibabaMnsQueueName exchange
property replaces the name of the queue for sendMessage and deleteMessage." },
+ "accountEndpoint": { "index": 1, "kind": "parameter", "displayName":
"Account Endpoint", "group": "common", "label": "", "required": true, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "The endpoint of Simple Message Queue
for the Alibaba Cloud account, for example
https:\/\/123456.mns.cn-hangzhou.aliyuncs.com. The value must start with
http:\/\/ or https:\/\/." },
+ "operation": { "index": 2, "kind": "parameter", "displayName":
"Operation", "group": "common", "label": "", "required": false, "type": "enum",
"javaType": "java.lang.String", "enum": [ "sendMessage", "deleteMessage",
"publishMessage" ], "deprecated": false, "autowired": false, "secret": false,
"description": "The operation that the producer performs. If not set, the
producer performs publishMessage for a topic endpoint and sendMessage
otherwise. The CamelAlibabaMnsOperation header re [...]
+ "region": { "index": 3, "kind": "parameter", "displayName": "Region",
"group": "common", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The region ID of Simple Message Queue, for example
cn-hangzhou." },
+ "topicName": { "index": 4, "kind": "parameter", "displayName": "Topic
Name", "group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The name of the topic for publishMessage. If
not set, a topic endpoint takes the name of the topic from its URI. The
CamelAlibabaMnsTopicName header replaces this option, and an exchange property
of the same name replaces both." },
+ "waitSeconds": { "index": 5, "kind": "parameter", "displayName": "Wait
Seconds", "group": "common", "label": "", "required": false, "type": "integer",
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": 0, "description": "The long polling wait time in seconds when
the consumer receives messages. If 0 or less, the PollingWaitSeconds of the
queue applies. Simple Message Queue accepts a value of at most 30." },
+ "deleteAfterRead": { "index": 6, "kind": "parameter", "displayName":
"Delete After Read", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether to delete the message from the queue after it is processed
successfully." },
+ "maxMessagesPerPoll": { "index": 7, "kind": "parameter", "displayName":
"Max Messages Per Poll", "group": "consumer", "label": "consumer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 1, "description": "The maximum number
of messages that the consumer receives in one poll. Simple Message Queue
accepts a value of at most 16. The consumer treats a value of 0 or less as 1."
},
"sendEmptyMessageWhenIdle": { "index": 8, "kind": "parameter",
"displayName": "Send Empty Message When Idle", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
false, "description": "If the polling consumer did not poll any files, you can
enable this option to send an empty message (no body) instead." },
"bridgeErrorHandler": { "index": 9, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions (if possible) occurred
while the Camel consumer is trying to pickup incoming [...]
"exceptionHandler": { "index": 10, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By de [...]
"exchangePattern": { "index": 11, "kind": "parameter", "displayName":
"Exchange Pattern", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "enum", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ],
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the exchange pattern when the consumer creates an exchange." },
"pollStrategy": { "index": 12, "kind": "parameter", "displayName": "Poll
Strategy", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.PollingConsumerPollStrategy", "deprecated": false,
"autowired": false, "secret": false, "description": "A pluggable
org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your
custom implementation to control error handling usually occurred during the po
[...]
"lazyStartProducer": { "index": 13, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produ [...]
- "mnsClient": { "index": 14, "kind": "parameter", "displayName": "MNS
Client", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "com.aliyun.mns.client.MNSClient", "deprecated": false,
"autowired": true, "secret": false, "description": "Autowire an existing
MNSClient instance" },
+ "mnsClient": { "index": 14, "kind": "parameter", "displayName": "MNS
Client", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "com.aliyun.mns.client.MNSClient", "deprecated": false,
"autowired": true, "secret": false, "description": "To use a custom
com.aliyun.mns.client.MNSClient. When this option is set or autowired, the
region and accountEndpoint options are not used. The Camel endpoint does not
close a client that is set or autowired." },
"backoffErrorThreshold": { "index": 15, "kind": "parameter",
"displayName": "Backoff Error Threshold", "group": "scheduler", "label":
"consumer,scheduler", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "description": "The
number of subsequent error polls (failed due some error) that should happen
before the backoffMultipler should kick-in." },
"backoffIdleThreshold": { "index": 16, "kind": "parameter", "displayName":
"Backoff Idle Threshold", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "The number of subsequent
idle polls that should happen before the backoffMultipler should kick-in." },
"backoffMultiplier": { "index": 17, "kind": "parameter", "displayName":
"Backoff Multiplier", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "To let the scheduled
polling consumer backoff if there has been a number of subsequent idles\/errors
in a row. The multiplier is then the number of polls that will be skipped
before the next actual attempt is h [...]
@@ -80,8 +80,8 @@
"startScheduler": { "index": 27, "kind": "parameter", "displayName":
"Start Scheduler", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Whether the scheduler should be auto started." },
"timeUnit": { "index": 28, "kind": "parameter", "displayName": "Time
Unit", "group": "scheduler", "label": "consumer,scheduler", "required": false,
"type": "enum", "javaType": "java.util.concurrent.TimeUnit", "enum": [
"NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS",
"DAYS" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "MILLISECONDS", "description": "Time unit for initialDelay and
delay options." },
"useFixedDelay": { "index": 29, "kind": "parameter", "displayName": "Use
Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in
JDK for details." },
- "accessKey": { "index": 30, "kind": "parameter", "displayName": "Access
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "Access key for the
cloud user" },
- "secretKey": { "index": 31, "kind": "parameter", "displayName": "Secret
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "Secret key for the
cloud user" },
- "serviceKeys": { "index": 32, "kind": "parameter", "displayName": "Service
Keys", "group": "security", "label": "security", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.alibaba.common.models.ServiceKeys", "deprecated":
false, "autowired": false, "secret": true, "security": "secret", "description":
"Configuration object for cloud service authentication" }
+ "accessKey": { "index": 30, "kind": "parameter", "displayName": "Access
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "The AccessKey ID
of the AccessKey pair for Simple Message Queue. If not set, the accessKey of
the serviceKeys option is used." },
+ "secretKey": { "index": 31, "kind": "parameter", "displayName": "Secret
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "The AccessKey
secret of the AccessKey pair for Simple Message Queue. If not set, the
secretKey of the serviceKeys option is used." },
+ "serviceKeys": { "index": 32, "kind": "parameter", "displayName": "Service
Keys", "group": "security", "label": "security", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.alibaba.common.models.ServiceKeys", "deprecated":
false, "autowired": false, "secret": true, "security": "secret", "description":
"The AccessKey pair as an
org.apache.camel.component.alibaba.common.models.ServiceKeys. Its accessKey and
its secretKey are each used when the option of the [...]
}
}
diff --git
a/components/camel-alibaba/camel-alibaba-mns/src/main/docs/alibaba-mns-component.adoc
b/components/camel-alibaba/camel-alibaba-mns/src/main/docs/alibaba-mns-component.adoc
index 4123227deb08..ad0f531f41b8 100644
---
a/components/camel-alibaba/camel-alibaba-mns/src/main/docs/alibaba-mns-component.adoc
+++
b/components/camel-alibaba/camel-alibaba-mns/src/main/docs/alibaba-mns-component.adoc
@@ -2,7 +2,7 @@
:doctitle: Alibaba Message Service (MNS)
:shortname: alibaba-mns
:artifactid: camel-alibaba-mns
-:description: Send and receive messages to/from Alibaba Cloud Message Service
(MNS).
+:description: Send and receive messages using Alibaba Cloud Simple Message
Queue (SMQ, formerly MNS).
:since: 4.23
:supportlevel: Preview
:tabs-sync-option:
diff --git
a/components/camel-alibaba/camel-alibaba-mns/src/main/java/org/apache/camel/component/alibaba/mns/MNSEndpoint.java
b/components/camel-alibaba/camel-alibaba-mns/src/main/java/org/apache/camel/component/alibaba/mns/MNSEndpoint.java
index 5af9b5739ab5..6b886191cb0a 100644
---
a/components/camel-alibaba/camel-alibaba-mns/src/main/java/org/apache/camel/component/alibaba/mns/MNSEndpoint.java
+++
b/components/camel-alibaba/camel-alibaba-mns/src/main/java/org/apache/camel/component/alibaba/mns/MNSEndpoint.java
@@ -34,7 +34,7 @@ import org.apache.camel.spi.UriPath;
import org.apache.camel.support.ScheduledPollEndpoint;
/**
- * Send and receive messages to/from Alibaba Cloud Message Service (MNS).
+ * Send and receive messages using Alibaba Cloud Simple Message Queue (SMQ,
formerly MNS).
*/
@UriEndpoint(firstVersion = "4.23.0", scheme = "alibaba-mns", title = "Alibaba
Message Service (MNS)",
syntax = "alibaba-mns:queueName", category = { Category.CLOUD,
Category.MESSAGING },
@@ -59,52 +59,74 @@ import org.apache.camel.support.ScheduledPollEndpoint;
+ " property"))
public class MNSEndpoint extends ScheduledPollEndpoint {
- @UriPath(description = "Queue name, or topic name when using the topic URI
syntax", displayName = "Queue Name")
+ @UriPath(description = "The name of the queue, or of the topic for a topic
endpoint such as alibaba-mns:topic:myTopic. The"
+ + " CamelAlibabaMnsQueueName exchange property
replaces the name of the queue for sendMessage and"
+ + " deleteMessage.",
+ displayName = "Queue Name")
@Metadata(required = true)
private String queueName;
- @UriParam(description = "Operation to perform by the producer. The
consumer does not use it: it receives the messages"
- + " of the queue",
+ @UriParam(description = "The operation that the producer performs. If not
set, the producer performs publishMessage for a"
+ + " topic endpoint and sendMessage otherwise. The
CamelAlibabaMnsOperation header replaces this"
+ + " option, and an exchange property of the same
name replaces both.",
displayName = "Operation", enums =
"sendMessage,deleteMessage,publishMessage")
private String operation;
- @UriParam(description = "Alibaba Cloud region", displayName = "Region")
+ @UriParam(description = "The region ID of Simple Message Queue, for
example cn-hangzhou.", displayName = "Region")
@Metadata(required = true)
private String region;
- @UriParam(description = "MNS account endpoint, for example
https://123456.mns.cn-hangzhou.aliyuncs.com",
+ @UriParam(description = "The endpoint of Simple Message Queue for the
Alibaba Cloud account, for example"
+ + " https://123456.mns.cn-hangzhou.aliyuncs.com.
The value must start with http:// or https://.",
displayName = "Account Endpoint")
@Metadata(required = true)
private String accountEndpoint;
- @UriParam(description = "Access key for the cloud user", displayName =
"Access Key", security = "secret",
+ @UriParam(description = "The AccessKey ID of the AccessKey pair for Simple
Message Queue. If not set, the accessKey of the"
+ + " serviceKeys option is used.",
+ displayName = "Access Key", security = "secret",
label = "security")
private String accessKey;
- @UriParam(description = "Secret key for the cloud user", displayName =
"Secret Key", security = "secret",
+ @UriParam(description = "The AccessKey secret of the AccessKey pair for
Simple Message Queue. If not set, the secretKey of"
+ + " the serviceKeys option is used.",
+ displayName = "Secret Key", security = "secret",
label = "security")
private String secretKey;
- @UriParam(description = "Configuration object for cloud service
authentication", displayName = "Service Keys",
+ @UriParam(description = "The AccessKey pair as an
org.apache.camel.component.alibaba.common.models.ServiceKeys. Its"
+ + " accessKey and its secretKey are each used when
the option of the same name is not set.",
+ displayName = "Service Keys",
security = "secret", label = "security")
private ServiceKeys serviceKeys;
- @UriParam(description = "Topic name for publishMessage operations",
displayName = "Topic Name")
+ @UriParam(description = "The name of the topic for publishMessage. If not
set, a topic endpoint takes the name of the"
+ + " topic from its URI. The
CamelAlibabaMnsTopicName header replaces this option, and an exchange"
+ + " property of the same name replaces both.",
+ displayName = "Topic Name")
private String topicName;
- @UriParam(description = "Long polling wait time in seconds when receiving
messages", displayName = "Wait Seconds",
+ @UriParam(description = "The long polling wait time in seconds when the
consumer receives messages. If 0 or less, the"
+ + " PollingWaitSeconds of the queue applies.
Simple Message Queue accepts a value of at most 30.",
+ displayName = "Wait Seconds",
defaultValue = "0")
private int waitSeconds;
- @UriParam(description = "Delete message from the queue after it has been
processed", displayName = "Delete After Read",
+ @UriParam(description = "Whether to delete the message from the queue
after it is processed successfully.",
+ displayName = "Delete After Read",
defaultValue = "true", label = "consumer")
private boolean deleteAfterRead = true;
- @UriParam(description = "Maximum number of messages to receive per poll",
displayName = "Max Messages Per Poll",
+ @UriParam(description = "The maximum number of messages that the consumer
receives in one poll. Simple Message Queue"
+ + " accepts a value of at most 16. The consumer
treats a value of 0 or less as 1.",
+ displayName = "Max Messages Per Poll",
defaultValue = "1", label = "consumer")
private int maxMessagesPerPoll = 1;
- @UriParam(description = "Autowire an existing MNSClient instance",
displayName = "MNS Client", label = "advanced")
+ @UriParam(description = "To use a custom com.aliyun.mns.client.MNSClient.
When this option is set or autowired, the region"
+ + " and accountEndpoint options are not used. The
Camel endpoint does not close a client that is"
+ + " set or autowired.",
+ displayName = "MNS Client", label = "advanced")
@Metadata(autowired = true)
private volatile MNSClient mnsClient;
diff --git
a/components/camel-alibaba/camel-alibaba-mns/src/main/java/org/apache/camel/component/alibaba/mns/constants/MNSHeaders.java
b/components/camel-alibaba/camel-alibaba-mns/src/main/java/org/apache/camel/component/alibaba/mns/constants/MNSHeaders.java
index 29adcd3aaebb..467acc2bac25 100644
---
a/components/camel-alibaba/camel-alibaba-mns/src/main/java/org/apache/camel/component/alibaba/mns/constants/MNSHeaders.java
+++
b/components/camel-alibaba/camel-alibaba-mns/src/main/java/org/apache/camel/component/alibaba/mns/constants/MNSHeaders.java
@@ -20,33 +20,41 @@ import org.apache.camel.spi.Metadata;
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. Simple Message Queue accepts at"
+ + " most 16 characters.",
+ javaType = "String")
public static final String MESSAGE_TAG = "CamelAlibabaMnsMessageTag";
- @Metadata(label = "producer", description = "The operation to invoke,
overriding the operation the endpoint"
- + " resolves. The exchange
property of the same name takes precedence"
- + " over this header.",
+ @Metadata(label = "producer", description = "The operation that the
producer performs. This header replaces the operation"
+ + " option, and an exchange
property of the same name replaces both.",
javaType = "String")
public static final String OPERATION = "CamelAlibabaMnsOperation";
- @Metadata(label = "producer", description = "The name of the topic to
publish to, overriding the one the endpoint"
- + " resolves. The exchange
property of the same name takes precedence"
- + " over this header.",
+ @Metadata(label = "producer", description = "The name of the topic for
publishMessage. This header replaces the topicName"
+ + " option, and an exchange
property of the same name replaces both.",
javaType = "String")
public static final String TOPIC_NAME = "CamelAlibabaMnsTopicName";
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index 33a09235e26a..4404df801b99 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -169,7 +169,8 @@ public interface ComponentsBuilderFactory {
}
/**
* Alibaba Message Service (MNS) (camel-alibaba-mns)
- * Send and receive messages to/from Alibaba Cloud Message Service (MNS).
+ * Send and receive messages using Alibaba Cloud Simple Message Queue (SMQ,
+ * formerly MNS).
*
* Category: cloud,messaging
* Since: 4.23
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AlibabaMnsComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AlibabaMnsComponentBuilderFactory.java
index 2f50e83bae7e..a36dc115c8c0 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AlibabaMnsComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AlibabaMnsComponentBuilderFactory.java
@@ -24,7 +24,8 @@ import org.apache.camel.builder.component.ComponentBuilder;
import org.apache.camel.component.alibaba.mns.MNSComponent;
/**
- * Send and receive messages to/from Alibaba Cloud Message Service (MNS).
+ * Send and receive messages using Alibaba Cloud Simple Message Queue (SMQ,
+ * formerly MNS).
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -33,7 +34,8 @@ public interface AlibabaMnsComponentBuilderFactory {
/**
* Alibaba Message Service (MNS) (camel-alibaba-mns)
- * Send and receive messages to/from Alibaba Cloud Message Service (MNS).
+ * Send and receive messages using Alibaba Cloud Simple Message Queue (SMQ,
+ * formerly MNS).
*
* Category: cloud,messaging
* Since: 4.23
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
index af0f3f146328..da76859eca3c 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
@@ -149,7 +149,8 @@ public class EndpointHeaderBuilders {
}
/**
* Alibaba Message Service (MNS) (camel-alibaba-mns)
- * Send and receive messages to/from Alibaba Cloud Message Service (MNS).
+ * Send and receive messages using Alibaba Cloud Simple Message Queue (SMQ,
+ * formerly MNS).
*
* Category: cloud,messaging
* Since: 4.23
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index c1b8677f9c61..b5a0129b8ac8 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -454,7 +454,8 @@ public class StaticEndpointBuilders {
}
/**
* Alibaba Message Service (MNS) (camel-alibaba-mns)
- * Send and receive messages to/from Alibaba Cloud Message Service (MNS).
+ * Send and receive messages using Alibaba Cloud Simple Message Queue (SMQ,
+ * formerly MNS).
*
* Category: cloud,messaging
* Since: 4.23
@@ -463,7 +464,9 @@ public class StaticEndpointBuilders {
* Syntax: <code>alibaba-mns:queueName</code>
*
* Path parameter: queueName (required)
- * Queue name, or topic name when using the topic URI syntax
+ * The name of the queue, or of the topic for a topic endpoint such as
+ * alibaba-mns:topic:myTopic. The CamelAlibabaMnsQueueName exchange
property
+ * replaces the name of the queue for sendMessage and deleteMessage.
*
* @param path queueName
* @return the dsl builder
@@ -473,7 +476,8 @@ public class StaticEndpointBuilders {
}
/**
* Alibaba Message Service (MNS) (camel-alibaba-mns)
- * Send and receive messages to/from Alibaba Cloud Message Service (MNS).
+ * Send and receive messages using Alibaba Cloud Simple Message Queue (SMQ,
+ * formerly MNS).
*
* Category: cloud,messaging
* Since: 4.23
@@ -482,7 +486,9 @@ public class StaticEndpointBuilders {
* Syntax: <code>alibaba-mns:queueName</code>
*
* Path parameter: queueName (required)
- * Queue name, or topic name when using the topic URI syntax
+ * The name of the queue, or of the topic for a topic endpoint such as
+ * alibaba-mns:topic:myTopic. The CamelAlibabaMnsQueueName exchange
property
+ * replaces the name of the queue for sendMessage and deleteMessage.
*
* @param componentName to use a custom component name for the endpoint
* instead of the default name
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MNSEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MNSEndpointBuilderFactory.java
index 925a80752910..c13c5fa929af 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MNSEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MNSEndpointBuilderFactory.java
@@ -27,7 +27,8 @@ import org.apache.camel.builder.EndpointProducerBuilder;
import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
/**
- * Send and receive messages to/from Alibaba Cloud Message Service (MNS).
+ * Send and receive messages using Alibaba Cloud Simple Message Queue (SMQ,
+ * formerly MNS).
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -44,8 +45,9 @@ public interface MNSEndpointBuilderFactory {
return (AdvancedMNSEndpointConsumerBuilder) this;
}
/**
- * MNS account endpoint, for example
- * https://123456.mns.cn-hangzhou.aliyuncs.com.
+ * The endpoint of Simple Message Queue for the Alibaba Cloud account,
+ * for example https://123456.mns.cn-hangzhou.aliyuncs.com. The value
+ * must start with http:// or https://.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -60,8 +62,10 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Operation to perform by the producer. The consumer does not use it:
- * it receives the messages of the queue.
+ * The operation that the producer performs. If not set, the producer
+ * performs publishMessage for a topic endpoint and sendMessage
+ * otherwise. The CamelAlibabaMnsOperation header replaces this option,
+ * and an exchange property of the same name replaces both.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -75,7 +79,7 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Alibaba Cloud region.
+ * The region ID of Simple Message Queue, for example cn-hangzhou.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -90,7 +94,10 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Topic name for publishMessage operations.
+ * The name of the topic for publishMessage. If not set, a topic
+ * endpoint takes the name of the topic from its URI. The
+ * CamelAlibabaMnsTopicName header replaces this option, and an
exchange
+ * property of the same name replaces both.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -104,7 +111,9 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Long polling wait time in seconds when receiving messages.
+ * The long polling wait time in seconds when the consumer receives
+ * messages. If 0 or less, the PollingWaitSeconds of the queue applies.
+ * Simple Message Queue accepts a value of at most 30.
*
* The option is a: <code>int</code> type.
*
@@ -119,7 +128,9 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Long polling wait time in seconds when receiving messages.
+ * The long polling wait time in seconds when the consumer receives
+ * messages. If 0 or less, the PollingWaitSeconds of the queue applies.
+ * Simple Message Queue accepts a value of at most 30.
*
* The option will be converted to a <code>int</code> type.
*
@@ -134,7 +145,8 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Delete message from the queue after it has been processed.
+ * Whether to delete the message from the queue after it is processed
+ * successfully.
*
* The option is a: <code>boolean</code> type.
*
@@ -149,7 +161,8 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Delete message from the queue after it has been processed.
+ * Whether to delete the message from the queue after it is processed
+ * successfully.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -164,7 +177,9 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Maximum number of messages to receive per poll.
+ * The maximum number of messages that the consumer receives in one
+ * poll. Simple Message Queue accepts a value of at most 16. The
+ * consumer treats a value of 0 or less as 1.
*
* The option is a: <code>int</code> type.
*
@@ -179,7 +194,9 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Maximum number of messages to receive per poll.
+ * The maximum number of messages that the consumer receives in one
+ * poll. Simple Message Queue accepts a value of at most 16. The
+ * consumer treats a value of 0 or less as 1.
*
* The option will be converted to a <code>int</code> type.
*
@@ -725,7 +742,8 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Access key for the cloud user.
+ * The AccessKey ID of the AccessKey pair for Simple Message Queue. If
+ * not set, the accessKey of the serviceKeys option is used.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -739,7 +757,8 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Secret key for the cloud user.
+ * The AccessKey secret of the AccessKey pair for Simple Message Queue.
+ * If not set, the secretKey of the serviceKeys option is used.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -753,7 +772,10 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Configuration object for cloud service authentication.
+ * The AccessKey pair as an
+ * org.apache.camel.component.alibaba.common.models.ServiceKeys. Its
+ * accessKey and its secretKey are each used when the option of the
same
+ * name is not set.
*
* The option is a:
*
<code>org.apache.camel.component.alibaba.common.models.ServiceKeys</code> type.
@@ -768,7 +790,10 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Configuration object for cloud service authentication.
+ * The AccessKey pair as an
+ * org.apache.camel.component.alibaba.common.models.ServiceKeys. Its
+ * accessKey and its secretKey are each used when the option of the
same
+ * name is not set.
*
* The option will be converted to a
*
<code>org.apache.camel.component.alibaba.common.models.ServiceKeys</code> type.
@@ -947,7 +972,10 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Autowire an existing MNSClient instance.
+ * To use a custom com.aliyun.mns.client.MNSClient. When this option is
+ * set or autowired, the region and accountEndpoint options are not
+ * used. The Camel endpoint does not close a client that is set or
+ * autowired.
*
* The option is a: <code>com.aliyun.mns.client.MNSClient</code> type.
*
@@ -961,7 +989,10 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Autowire an existing MNSClient instance.
+ * To use a custom com.aliyun.mns.client.MNSClient. When this option is
+ * set or autowired, the region and accountEndpoint options are not
+ * used. The Camel endpoint does not close a client that is set or
+ * autowired.
*
* The option will be converted to a
* <code>com.aliyun.mns.client.MNSClient</code> type.
@@ -988,8 +1019,9 @@ public interface MNSEndpointBuilderFactory {
}
/**
- * MNS account endpoint, for example
- * https://123456.mns.cn-hangzhou.aliyuncs.com.
+ * The endpoint of Simple Message Queue for the Alibaba Cloud account,
+ * for example https://123456.mns.cn-hangzhou.aliyuncs.com. The value
+ * must start with http:// or https://.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1004,8 +1036,10 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Operation to perform by the producer. The consumer does not use it:
- * it receives the messages of the queue.
+ * The operation that the producer performs. If not set, the producer
+ * performs publishMessage for a topic endpoint and sendMessage
+ * otherwise. The CamelAlibabaMnsOperation header replaces this option,
+ * and an exchange property of the same name replaces both.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1019,7 +1053,7 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Alibaba Cloud region.
+ * The region ID of Simple Message Queue, for example cn-hangzhou.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1034,7 +1068,10 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Topic name for publishMessage operations.
+ * The name of the topic for publishMessage. If not set, a topic
+ * endpoint takes the name of the topic from its URI. The
+ * CamelAlibabaMnsTopicName header replaces this option, and an
exchange
+ * property of the same name replaces both.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1048,7 +1085,9 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Long polling wait time in seconds when receiving messages.
+ * The long polling wait time in seconds when the consumer receives
+ * messages. If 0 or less, the PollingWaitSeconds of the queue applies.
+ * Simple Message Queue accepts a value of at most 30.
*
* The option is a: <code>int</code> type.
*
@@ -1063,7 +1102,9 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Long polling wait time in seconds when receiving messages.
+ * The long polling wait time in seconds when the consumer receives
+ * messages. If 0 or less, the PollingWaitSeconds of the queue applies.
+ * Simple Message Queue accepts a value of at most 30.
*
* The option will be converted to a <code>int</code> type.
*
@@ -1078,7 +1119,8 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Access key for the cloud user.
+ * The AccessKey ID of the AccessKey pair for Simple Message Queue. If
+ * not set, the accessKey of the serviceKeys option is used.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1092,7 +1134,8 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Secret key for the cloud user.
+ * The AccessKey secret of the AccessKey pair for Simple Message Queue.
+ * If not set, the secretKey of the serviceKeys option is used.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1106,7 +1149,10 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Configuration object for cloud service authentication.
+ * The AccessKey pair as an
+ * org.apache.camel.component.alibaba.common.models.ServiceKeys. Its
+ * accessKey and its secretKey are each used when the option of the
same
+ * name is not set.
*
* The option is a:
*
<code>org.apache.camel.component.alibaba.common.models.ServiceKeys</code> type.
@@ -1121,7 +1167,10 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Configuration object for cloud service authentication.
+ * The AccessKey pair as an
+ * org.apache.camel.component.alibaba.common.models.ServiceKeys. Its
+ * accessKey and its secretKey are each used when the option of the
same
+ * name is not set.
*
* The option will be converted to a
*
<code>org.apache.camel.component.alibaba.common.models.ServiceKeys</code> type.
@@ -1192,7 +1241,10 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Autowire an existing MNSClient instance.
+ * To use a custom com.aliyun.mns.client.MNSClient. When this option is
+ * set or autowired, the region and accountEndpoint options are not
+ * used. The Camel endpoint does not close a client that is set or
+ * autowired.
*
* The option is a: <code>com.aliyun.mns.client.MNSClient</code> type.
*
@@ -1206,7 +1258,10 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Autowire an existing MNSClient instance.
+ * To use a custom com.aliyun.mns.client.MNSClient. When this option is
+ * set or autowired, the region and accountEndpoint options are not
+ * used. The Camel endpoint does not close a client that is set or
+ * autowired.
*
* The option will be converted to a
* <code>com.aliyun.mns.client.MNSClient</code> type.
@@ -1234,8 +1289,9 @@ public interface MNSEndpointBuilderFactory {
}
/**
- * MNS account endpoint, for example
- * https://123456.mns.cn-hangzhou.aliyuncs.com.
+ * The endpoint of Simple Message Queue for the Alibaba Cloud account,
+ * for example https://123456.mns.cn-hangzhou.aliyuncs.com. The value
+ * must start with http:// or https://.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1250,8 +1306,10 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Operation to perform by the producer. The consumer does not use it:
- * it receives the messages of the queue.
+ * The operation that the producer performs. If not set, the producer
+ * performs publishMessage for a topic endpoint and sendMessage
+ * otherwise. The CamelAlibabaMnsOperation header replaces this option,
+ * and an exchange property of the same name replaces both.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1265,7 +1323,7 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Alibaba Cloud region.
+ * The region ID of Simple Message Queue, for example cn-hangzhou.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1280,7 +1338,10 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Topic name for publishMessage operations.
+ * The name of the topic for publishMessage. If not set, a topic
+ * endpoint takes the name of the topic from its URI. The
+ * CamelAlibabaMnsTopicName header replaces this option, and an
exchange
+ * property of the same name replaces both.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1294,7 +1355,9 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Long polling wait time in seconds when receiving messages.
+ * The long polling wait time in seconds when the consumer receives
+ * messages. If 0 or less, the PollingWaitSeconds of the queue applies.
+ * Simple Message Queue accepts a value of at most 30.
*
* The option is a: <code>int</code> type.
*
@@ -1309,7 +1372,9 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Long polling wait time in seconds when receiving messages.
+ * The long polling wait time in seconds when the consumer receives
+ * messages. If 0 or less, the PollingWaitSeconds of the queue applies.
+ * Simple Message Queue accepts a value of at most 30.
*
* The option will be converted to a <code>int</code> type.
*
@@ -1324,7 +1389,8 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Access key for the cloud user.
+ * The AccessKey ID of the AccessKey pair for Simple Message Queue. If
+ * not set, the accessKey of the serviceKeys option is used.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1338,7 +1404,8 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Secret key for the cloud user.
+ * The AccessKey secret of the AccessKey pair for Simple Message Queue.
+ * If not set, the secretKey of the serviceKeys option is used.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1352,7 +1419,10 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Configuration object for cloud service authentication.
+ * The AccessKey pair as an
+ * org.apache.camel.component.alibaba.common.models.ServiceKeys. Its
+ * accessKey and its secretKey are each used when the option of the
same
+ * name is not set.
*
* The option is a:
*
<code>org.apache.camel.component.alibaba.common.models.ServiceKeys</code> type.
@@ -1367,7 +1437,10 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Configuration object for cloud service authentication.
+ * The AccessKey pair as an
+ * org.apache.camel.component.alibaba.common.models.ServiceKeys. Its
+ * accessKey and its secretKey are each used when the option of the
same
+ * name is not set.
*
* The option will be converted to a
*
<code>org.apache.camel.component.alibaba.common.models.ServiceKeys</code> type.
@@ -1395,7 +1468,10 @@ public interface MNSEndpointBuilderFactory {
}
/**
- * Autowire an existing MNSClient instance.
+ * To use a custom com.aliyun.mns.client.MNSClient. When this option is
+ * set or autowired, the region and accountEndpoint options are not
+ * used. The Camel endpoint does not close a client that is set or
+ * autowired.
*
* The option is a: <code>com.aliyun.mns.client.MNSClient</code> type.
*
@@ -1409,7 +1485,10 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * Autowire an existing MNSClient instance.
+ * To use a custom com.aliyun.mns.client.MNSClient. When this option is
+ * set or autowired, the region and accountEndpoint options are not
+ * used. The Camel endpoint does not close a client that is set or
+ * autowired.
*
* The option will be converted to a
* <code>com.aliyun.mns.client.MNSClient</code> type.
@@ -1428,8 +1507,8 @@ public interface MNSEndpointBuilderFactory {
public interface MNSBuilders {
/**
* Alibaba Message Service (MNS) (camel-alibaba-mns)
- * Send and receive messages to/from Alibaba Cloud Message Service
- * (MNS).
+ * Send and receive messages using Alibaba Cloud Simple Message Queue
+ * (SMQ, formerly MNS).
*
* Category: cloud,messaging
* Since: 4.23
@@ -1442,8 +1521,8 @@ public interface MNSEndpointBuilderFactory {
}
/**
* Alibaba Message Service (MNS) (camel-alibaba-mns)
- * Send and receive messages to/from Alibaba Cloud Message Service
- * (MNS).
+ * Send and receive messages using Alibaba Cloud Simple Message Queue
+ * (SMQ, formerly MNS).
*
* Category: cloud,messaging
* Since: 4.23
@@ -1452,7 +1531,10 @@ public interface MNSEndpointBuilderFactory {
* Syntax: <code>alibaba-mns:queueName</code>
*
* Path parameter: queueName (required)
- * Queue name, or topic name when using the topic URI syntax
+ * The name of the queue, or of the topic for a topic endpoint such as
+ * alibaba-mns:topic:myTopic. The CamelAlibabaMnsQueueName exchange
+ * property replaces the name of the queue for sendMessage and
+ * deleteMessage.
*
* @param path queueName
* @return the dsl builder
@@ -1462,8 +1544,8 @@ public interface MNSEndpointBuilderFactory {
}
/**
* Alibaba Message Service (MNS) (camel-alibaba-mns)
- * Send and receive messages to/from Alibaba Cloud Message Service
- * (MNS).
+ * Send and receive messages using Alibaba Cloud Simple Message Queue
+ * (SMQ, formerly MNS).
*
* Category: cloud,messaging
* Since: 4.23
@@ -1472,7 +1554,10 @@ public interface MNSEndpointBuilderFactory {
* Syntax: <code>alibaba-mns:queueName</code>
*
* Path parameter: queueName (required)
- * Queue name, or topic name when using the topic URI syntax
+ * The name of the queue, or of the topic for a topic endpoint such as
+ * alibaba-mns:topic:myTopic. The CamelAlibabaMnsQueueName exchange
+ * property replaces the name of the queue for sendMessage and
+ * deleteMessage.
*
* @param componentName to use a custom component name for the endpoint
* instead of the default name
@@ -1495,7 +1580,7 @@ public interface MNSEndpointBuilderFactory {
public static final MNSHeaderNameBuilder INSTANCE = new
MNSHeaderNameBuilder();
/**
- * The MNS message id.
+ * The ID of the message.
*
* The option is a: {@code String} type.
*
@@ -1507,7 +1592,9 @@ public interface MNSEndpointBuilderFactory {
return "CamelAlibabaMnsMessageId";
}
/**
- * The MNS receipt handle.
+ * 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.
*
* The option is a: {@code String} type.
*
@@ -1531,7 +1618,9 @@ public interface MNSEndpointBuilderFactory {
return "CamelAlibabaMnsMessageBodyMd5";
}
/**
- * Delay in seconds before the message becomes visible.
+ * 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.
*
* The option is a: {@code Integer} type.
*
@@ -1543,7 +1632,8 @@ public interface MNSEndpointBuilderFactory {
return "CamelAlibabaMnsDelaySeconds";
}
/**
- * Message priority.
+ * The priority of the message for sendMessage. The consumer sets it
for
+ * a received message.
*
* The option is a: {@code Integer} type.
*
@@ -1555,7 +1645,8 @@ public interface MNSEndpointBuilderFactory {
return "CamelAlibabaMnsPriority";
}
/**
- * Message tag for topic publish operations.
+ * The tag of the message for publishMessage. Simple Message Queue
+ * accepts at most 16 characters.
*
* The option is a: {@code String} type.
*
@@ -1567,9 +1658,9 @@ public interface MNSEndpointBuilderFactory {
return "CamelAlibabaMnsMessageTag";
}
/**
- * The operation to invoke, overriding the operation the endpoint
- * resolves. The exchange property of the same name takes precedence
- * over this header.
+ * The operation that the producer performs. This header replaces the
+ * operation option, and an exchange property of the same name replaces
+ * both.
*
* The option is a: {@code String} type.
*
@@ -1581,9 +1672,9 @@ public interface MNSEndpointBuilderFactory {
return "CamelAlibabaMnsOperation";
}
/**
- * The name of the topic to publish to, overriding the one the endpoint
- * resolves. The exchange property of the same name takes precedence
- * over this header.
+ * The name of the topic for publishMessage. This header replaces the
+ * topicName option, and an exchange property of the same name replaces
+ * both.
*
* The option is a: {@code String} type.
*
diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md
index 2792593d3be2..58d00152e9ff 100644
--- a/tasks/component-descriptions.md
+++ b/tasks/component-descriptions.md
@@ -61,7 +61,7 @@ or removes its row.
| camel-alibaba-eventbridge | alibaba-eventbridge | yes |
| camel-alibaba-fc | alibaba-fc | yes |
| camel-alibaba-kms | alibaba-kms | yes |
-| camel-alibaba-mns | alibaba-mns | |
+| camel-alibaba-mns | alibaba-mns | yes |
| camel-alibaba-oss | alibaba-oss | |
| camel-alibaba-ots | alibaba-ots | yes |
| camel-alibaba-sls | alibaba-sls | yes |