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 136c32907ef0 CAMEL-27406: camel-alibaba-mns - fix the labels of
operation, topicName, waitSeconds and the priority header (#30644)
136c32907ef0 is described below
commit 136c32907ef0cd4373f75540a60590160a46bea2
Author: Saravanakumar Selvaraj <[email protected]>
AuthorDate: Mon Nov 23 08:34:33 2026 +0000
CAMEL-27406: camel-alibaba-mns - fix the labels of operation, topicName,
waitSeconds and the priority header (#30644)
operation and topicName had no label, but only the producer reads them.
They now have the label producer. waitSeconds
had no label, but only the consumer reads it. It now has the label
consumer. The header CamelAlibabaMnsPriority had the
label producer, but the consumer sets it too. It now has the label common.
The component JSON, its catalog copy and the Endpoint DSL are regenerated.
In the Endpoint DSL, the consumer builder
loses operation and topicName, and the producer builder loses waitSeconds.
A new test of CamelCatalogTest covers the
three options and the header. The upgrade guide of 4.24 has a section on
the change.
MNSEndpoint.resolveConsumerOperation stays as it is. CAMEL-26520 covers its
deprecation.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
.../camel/catalog/components/alibaba-mns.json | 24 +--
.../org/apache/camel/catalog/CamelCatalogTest.java | 33 +++
.../camel/component/alibaba/mns/alibaba-mns.json | 24 +--
.../camel/component/alibaba/mns/MNSEndpoint.java | 7 +-
.../alibaba/mns/constants/MNSHeaders.java | 4 +-
.../ROOT/pages/camel-4x-upgrade-guide-4_24.adoc | 16 ++
.../endpoint/dsl/MNSEndpointBuilderFactory.java | 234 +++++----------------
7 files changed, 128 insertions(+), 214 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 58fbbc169c52..f1142d143abe 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
@@ -35,7 +35,7 @@
"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": "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" },
+ "CamelAlibabaMnsPriority": { "index": 4, "kind": "header", "displayName":
"", "group": "common", "label": "common", "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" },
@@ -52,17 +52,17 @@
"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": "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
[...]
+ "region": { "index": 2, "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." },
+ "deleteAfterRead": { "index": 3, "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": 4, "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": 5, "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." },
+ "waitSeconds": { "index": 6, "kind": "parameter", "displayName": "Wait
Seconds", "group": "consumer", "label": "consumer", "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." },
+ "bridgeErrorHandler": { "index": 7, "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": 8, "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 def [...]
+ "exchangePattern": { "index": 9, "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": 10, "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
[...]
+ "operation": { "index": 11, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "producer", "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 CamelAlibabaMnsOperatio [...]
+ "topicName": { "index": 12, "kind": "parameter", "displayName": "Topic
Name", "group": "producer", "label": "producer", "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." },
"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": "To use a custom
com.aliyun.mns.client.MNSClient. When this option is set or autowired, the
region, accountEndpoint, accessKey, secretKey, and serviceKeys options are not
used. The Camel endpoint does not close a [...]
"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." },
diff --git
a/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java
b/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java
index 36f88880c2bc..cd037d7882f1 100644
---
a/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java
+++
b/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java
@@ -1619,6 +1619,39 @@ public class CamelCatalogTest {
assertTrue(model.getEndpointHeaders().stream().anyMatch(h ->
"CamelAlibabaFcOperation".equals(h.getName())));
}
+ @Test
+ public void testValidateEndpointAlibabaMns() {
+ // only the producer uses operation and topicName
+ String uri =
"alibaba-mns:myQueue?region=cn-hangzhou&accountEndpoint=https://123456.mns.cn-hangzhou.aliyuncs.com"
+ + "&operation=sendMessage&topicName=myTopic";
+ EndpointValidationResult result =
catalog.validateEndpointProperties(uri, false, false, true);
+ assertTrue(result.isSuccess(), result.summaryErrorMessage(false));
+
+ result = catalog.validateEndpointProperties(uri, false, true, false);
+ assertFalse(result.isSuccess());
+
+ assertEquals(2, result.getNotConsumerOnly().size());
+ assertTrue(result.getNotConsumerOnly().contains("operation"));
+ assertTrue(result.getNotConsumerOnly().contains("topicName"));
+
+ // only the consumer uses waitSeconds
+ uri =
"alibaba-mns:myQueue?region=cn-hangzhou&accountEndpoint=https://123456.mns.cn-hangzhou.aliyuncs.com"
+ + "&waitSeconds=10";
+ result = catalog.validateEndpointProperties(uri, false, true, false);
+ assertTrue(result.isSuccess(), result.summaryErrorMessage(false));
+
+ result = catalog.validateEndpointProperties(uri, false, false, true);
+ assertFalse(result.isSuccess());
+
+ assertEquals(1, result.getNotProducerOnly().size());
+ assertTrue(result.getNotProducerOnly().contains("waitSeconds"));
+
+ // both sides use the priority header
+ Map<String, String> groups = new HashMap<>();
+ catalog.componentModel("alibaba-mns").getEndpointHeaders().forEach(h
-> groups.put(h.getName(), h.getGroup()));
+ assertEquals("common", groups.get("CamelAlibabaMnsPriority"));
+ }
+
@Test
public void testValidateApiEndpoint() {
// there is a type converter that converts from and to to phone number
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 58fbbc169c52..f1142d143abe 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
@@ -35,7 +35,7 @@
"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": "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" },
+ "CamelAlibabaMnsPriority": { "index": 4, "kind": "header", "displayName":
"", "group": "common", "label": "common", "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" },
@@ -52,17 +52,17 @@
"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": "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
[...]
+ "region": { "index": 2, "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." },
+ "deleteAfterRead": { "index": 3, "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": 4, "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": 5, "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." },
+ "waitSeconds": { "index": 6, "kind": "parameter", "displayName": "Wait
Seconds", "group": "consumer", "label": "consumer", "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." },
+ "bridgeErrorHandler": { "index": 7, "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": 8, "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 def [...]
+ "exchangePattern": { "index": 9, "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": 10, "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
[...]
+ "operation": { "index": 11, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "producer", "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 CamelAlibabaMnsOperatio [...]
+ "topicName": { "index": 12, "kind": "parameter", "displayName": "Topic
Name", "group": "producer", "label": "producer", "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." },
"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": "To use a custom
com.aliyun.mns.client.MNSClient. When this option is set or autowired, the
region, accountEndpoint, accessKey, secretKey, and serviceKeys options are not
used. The Camel endpoint does not close a [...]
"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." },
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 de10d8e1ee8e..5cf6886a33b2 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
@@ -69,7 +69,8 @@ public class MNSEndpoint extends ScheduledPollEndpoint {
@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")
+ displayName = "Operation", label = "producer",
+ enums = "sendMessage,deleteMessage,publishMessage")
private String operation;
@UriParam(description = "The region ID of Simple Message Queue, for
example cn-hangzhou.", displayName = "Region")
@@ -103,13 +104,13 @@ public class MNSEndpoint extends ScheduledPollEndpoint {
@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")
+ displayName = "Topic Name", label = "producer")
private String topicName;
@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")
+ defaultValue = "0", label = "consumer")
private int waitSeconds;
@UriParam(description = "Whether to delete the message from the queue
after it is processed successfully.",
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 467acc2bac25..84198c970078 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
@@ -38,8 +38,8 @@ public final class MNSHeaders {
javaType = "Integer")
public static final String DELAY_SECONDS = "CamelAlibabaMnsDelaySeconds";
- @Metadata(label = "producer", description = "The priority of the message
for sendMessage. The consumer sets it for a"
- + " received message.",
+ @Metadata(label = "common", description = "The priority of the message for
sendMessage. The consumer sets it for a received"
+ + " message.",
javaType = "Integer")
public static final String PRIORITY = "CamelAlibabaMnsPriority";
diff --git
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
index 22f86b24e6f1..8461eb0c093a 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
@@ -7305,6 +7305,22 @@ earlier version must be recompiled, and a subclass that
overrides `initClient()`
`accountEndpoint`, which no code read. Code that creates the record, or calls
one of these four accessors, needs a
change. The producer no longer needs an AccessKey pair when the `mnsClient`
option is set or autowired.
+=== camel-alibaba-mns - operation and topicName are producer options, and
waitSeconds is a consumer option
+
+The `operation` and `topicName` options of the `alibaba-mns` endpoint now have
the label `producer`, as only the
+producer uses them. The `waitSeconds` option now has the label `consumer`, as
only the consumer uses it. In the Endpoint
+DSL, `MNSEndpointConsumerBuilder` no longer has the methods of `operation` and
`topicName`. `MNSEndpointProducerBuilder`
+no longer has the methods of `waitSeconds`. So
`from(alibabaMns(...).operation(...))` and
+`to(alibabaMns(...).waitSeconds(...))` no longer compile. Code compiled
against an earlier version that calls one of the
+three on the `alibabaMns(...)` builder must be recompiled.
+
+Remove `operation` and `topicName` from consumer endpoints, and `waitSeconds`
from producer endpoints. They had no
+effect there. The endpoint validation of the catalog now reports `operation`
and `topicName` in consumer-only mode, and
+`waitSeconds` in producer-only mode.
+
+The `CamelAlibabaMnsPriority` header now has the label `common` instead of
`producer`, as the consumer sets it too. The
+behavior of the component at runtime does not change.
+
=== camel-minio - a listed object that cannot be got is skipped
When the consumer lists the bucket, a failure to stat or get one of the listed
objects (for example access denied, or
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 e3f7b2af033c..81aa1a80e952 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
@@ -61,23 +61,6 @@ public interface MNSEndpointBuilderFactory {
doSetProperty("accountEndpoint", accountEndpoint);
return this;
}
- /**
- * 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.
- *
- * Group: common
- *
- * @param operation the value to set
- * @return the dsl builder
- */
- default MNSEndpointConsumerBuilder operation(String operation) {
- doSetProperty("operation", operation);
- return this;
- }
/**
* The region ID of Simple Message Queue, for example cn-hangzhou.
*
@@ -93,57 +76,6 @@ public interface MNSEndpointBuilderFactory {
doSetProperty("region", region);
return this;
}
- /**
- * 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.
- *
- * Group: common
- *
- * @param topicName the value to set
- * @return the dsl builder
- */
- default MNSEndpointConsumerBuilder topicName(String topicName) {
- doSetProperty("topicName", topicName);
- return this;
- }
- /**
- * 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.
- *
- * Default: 0
- * Group: common
- *
- * @param waitSeconds the value to set
- * @return the dsl builder
- */
- default MNSEndpointConsumerBuilder waitSeconds(int waitSeconds) {
- doSetProperty("waitSeconds", waitSeconds);
- return this;
- }
- /**
- * 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.
- *
- * Default: 0
- * Group: common
- *
- * @param waitSeconds the value to set
- * @return the dsl builder
- */
- default MNSEndpointConsumerBuilder waitSeconds(String waitSeconds) {
- doSetProperty("waitSeconds", waitSeconds);
- return this;
- }
/**
* Whether to delete the message from the queue after it is processed
* successfully.
@@ -242,6 +174,40 @@ public interface MNSEndpointBuilderFactory {
doSetProperty("sendEmptyMessageWhenIdle",
sendEmptyMessageWhenIdle);
return this;
}
+ /**
+ * 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.
+ *
+ * Default: 0
+ * Group: consumer
+ *
+ * @param waitSeconds the value to set
+ * @return the dsl builder
+ */
+ default MNSEndpointConsumerBuilder waitSeconds(int waitSeconds) {
+ doSetProperty("waitSeconds", waitSeconds);
+ return this;
+ }
+ /**
+ * 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.
+ *
+ * Default: 0
+ * Group: consumer
+ *
+ * @param waitSeconds the value to set
+ * @return the dsl builder
+ */
+ default MNSEndpointConsumerBuilder waitSeconds(String waitSeconds) {
+ doSetProperty("waitSeconds", waitSeconds);
+ return this;
+ }
/**
* The number of subsequent error polls (failed due some error) that
* should happen before the backoffMultipler should kick-in.
@@ -1036,35 +1002,35 @@ public interface MNSEndpointBuilderFactory {
return this;
}
/**
- * 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 region ID of Simple Message Queue, for example cn-hangzhou.
*
* The option is a: <code>java.lang.String</code> type.
*
+ * Required: true
* Group: common
*
- * @param operation the value to set
+ * @param region the value to set
* @return the dsl builder
*/
- default MNSEndpointProducerBuilder operation(String operation) {
- doSetProperty("operation", operation);
+ default MNSEndpointProducerBuilder region(String region) {
+ doSetProperty("region", region);
return this;
}
/**
- * The region ID of Simple Message Queue, for example cn-hangzhou.
+ * 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.
*
- * Required: true
- * Group: common
+ * Group: producer
*
- * @param region the value to set
+ * @param operation the value to set
* @return the dsl builder
*/
- default MNSEndpointProducerBuilder region(String region) {
- doSetProperty("region", region);
+ default MNSEndpointProducerBuilder operation(String operation) {
+ doSetProperty("operation", operation);
return this;
}
/**
@@ -1075,7 +1041,7 @@ public interface MNSEndpointBuilderFactory {
*
* The option is a: <code>java.lang.String</code> type.
*
- * Group: common
+ * Group: producer
*
* @param topicName the value to set
* @return the dsl builder
@@ -1084,40 +1050,6 @@ public interface MNSEndpointBuilderFactory {
doSetProperty("topicName", topicName);
return this;
}
- /**
- * 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.
- *
- * Default: 0
- * Group: common
- *
- * @param waitSeconds the value to set
- * @return the dsl builder
- */
- default MNSEndpointProducerBuilder waitSeconds(int waitSeconds) {
- doSetProperty("waitSeconds", waitSeconds);
- return this;
- }
- /**
- * 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.
- *
- * Default: 0
- * Group: common
- *
- * @param waitSeconds the value to set
- * @return the dsl builder
- */
- default MNSEndpointProducerBuilder waitSeconds(String waitSeconds) {
- doSetProperty("waitSeconds", waitSeconds);
- return this;
- }
/**
* The AccessKey ID of the AccessKey pair for Simple Message Queue. If
* not set, the accessKey of the serviceKeys option is used.
@@ -1305,23 +1237,6 @@ public interface MNSEndpointBuilderFactory {
doSetProperty("accountEndpoint", accountEndpoint);
return this;
}
- /**
- * 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.
- *
- * Group: common
- *
- * @param operation the value to set
- * @return the dsl builder
- */
- default MNSEndpointBuilder operation(String operation) {
- doSetProperty("operation", operation);
- return this;
- }
/**
* The region ID of Simple Message Queue, for example cn-hangzhou.
*
@@ -1337,57 +1252,6 @@ public interface MNSEndpointBuilderFactory {
doSetProperty("region", region);
return this;
}
- /**
- * 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.
- *
- * Group: common
- *
- * @param topicName the value to set
- * @return the dsl builder
- */
- default MNSEndpointBuilder topicName(String topicName) {
- doSetProperty("topicName", topicName);
- return this;
- }
- /**
- * 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.
- *
- * Default: 0
- * Group: common
- *
- * @param waitSeconds the value to set
- * @return the dsl builder
- */
- default MNSEndpointBuilder waitSeconds(int waitSeconds) {
- doSetProperty("waitSeconds", waitSeconds);
- return this;
- }
- /**
- * 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.
- *
- * Default: 0
- * Group: common
- *
- * @param waitSeconds the value to set
- * @return the dsl builder
- */
- default MNSEndpointBuilder waitSeconds(String waitSeconds) {
- doSetProperty("waitSeconds", waitSeconds);
- return this;
- }
/**
* The AccessKey ID of the AccessKey pair for Simple Message Queue. If
* not set, the accessKey of the serviceKeys option is used.
@@ -1637,7 +1501,7 @@ public interface MNSEndpointBuilderFactory {
*
* The option is a: {@code Integer} type.
*
- * Group: producer
+ * Group: common
*
* @return the name of the header {@code AlibabaMnsPriority}.
*/