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 2c7fef3640a Polished
2c7fef3640a is described below
commit 2c7fef3640a1eb3afbac3753e64ff82d13af7828
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Jun 9 10:27:41 2025 +0200
Polished
---
.../apache/camel/catalog/models/pollEnrich.json | 4 ++--
.../apache/camel/catalog/schemas/camel-spring.xsd | 10 +++++-----
.../apache/camel/catalog/schemas/camel-xml-io.xsd | 10 +++++-----
.../org/apache/camel/model/pollEnrich.json | 4 ++--
.../apache/camel/model/PollEnrichDefinition.java | 23 +++++++++++-----------
.../dsl/yaml/deserializers/ModelDeserializers.java | 4 ++--
.../generated/resources/schema/camelYamlDsl.json | 4 ++--
7 files changed, 30 insertions(+), 29 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/pollEnrich.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/pollEnrich.json
index da0d13e98c7..3042a9f35e8 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/pollEnrich.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/pollEnrich.json
@@ -22,8 +22,8 @@
"aggregationStrategyMethodAllowNull": { "index": 7, "kind": "attribute",
"displayName": "Aggregation Strategy Method Allow Null", "group": "advanced",
"label": "advanced", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "If this option is false then the aggregate method is not used
if there was no data to enrich. If this option is true then null values is used
as the oldExchange (when no dat [...]
"aggregateOnException": { "index": 8, "kind": "attribute", "displayName":
"Aggregate On Exception", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description": "If
this option is false then the aggregate method is not used if there was an
exception thrown while trying to retrieve the data to enrich from the resource.
Setting this option [...]
"timeout": { "index": 9, "kind": "attribute", "displayName": "Timeout",
"group": "common", "required": false, "type": "duration", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "-1", "description": "Timeout in millis when polling from the
external service. The timeout has influence about the poll enrich behavior. It
basically operations in three different modes: negative value - Waits until a
message is available and then ret [...]
- "cacheSize": { "index": 10, "kind": "attribute", "displayName": "Cache
Size", "group": "advanced", "label": "advanced", "required": false, "type":
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired":
false, "secret": false, "description": "Sets the maximum size used by the
org.apache.camel.spi.ConsumerCache which is used to cache and reuse consumers
when uris are reused. Beware that when using dynamic endpoints then it affects
how well the cache can be utiliz [...]
- "ignoreInvalidEndpoint": { "index": 11, "kind": "attribute",
"displayName": "Ignore Invalid Endpoint", "group": "advanced", "label":
"advanced", "required": false, "type": "boolean", "javaType":
"java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Ignore the invalidate endpoint exception
when try to create a producer with that endpoint" },
+ "cacheSize": { "index": 10, "kind": "attribute", "displayName": "Cache
Size", "group": "advanced", "label": "advanced", "required": false, "type":
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired":
false, "secret": false, "description": "Sets the maximum size used by the
org.apache.camel.spi.ConsumerCache which is used to cache and reuse consumers
when uris are reused. Beware that when using dynamic endpoints then it affects
how well the cache can be utiliz [...]
+ "ignoreInvalidEndpoint": { "index": 11, "kind": "attribute",
"displayName": "Ignore Invalid Endpoint", "group": "advanced", "label":
"advanced", "required": false, "type": "boolean", "javaType":
"java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Ignore the invalidate endpoint exception
when try to create a consumer with that endpoint" },
"allowOptimisedComponents": { "index": 12, "kind": "attribute",
"displayName": "Allow Optimised Components", "group": "advanced", "label":
"advanced", "required": false, "type": "boolean", "javaType":
"java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": true, "description": "Whether to allow components to optimise
if they are org.apache.camel.spi.PollDynamicAware" },
"autoStartComponents": { "index": 13, "kind": "attribute", "displayName":
"Auto Start Components", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether to auto startup components when poll enricher is starting up." }
},
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
index a7c9fbf92a4..8ad794311e3 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
@@ -11905,12 +11905,12 @@ recommended to use a timeout value. Default value: -1
Sets the maximum size used by the org.apache.camel.spi.ConsumerCache which is
used to cache and reuse consumers when
uris are reused. Beware that when using dynamic endpoints then it affects how
well the cache can be utilized. If each
dynamic endpoint is unique then its best to turn off caching by setting this
to -1, which allows Camel to not cache both
-the producers and endpoints; they are regarded as prototype scoped and will be
stopped and discarded after use. This
-reduces memory usage as otherwise producers/endpoints are stored in memory in
the caches. However if there are a high
-degree of dynamic endpoints that have been used before, then it can benefit to
use the cache to reuse both producers and
+the consumers and endpoints; they are regarded as prototype scoped and will be
stopped and discarded after use. This
+reduces memory usage as otherwise consumers/endpoints are stored in memory in
the caches. However, if there are a high
+degree of dynamic endpoints that have been used before, then it can benefit to
use the cache to reuse both consumers and
endpoints and therefore the cache size can be set accordingly or rely on the
default size (1000). If there is a mix of
unique and used before dynamic endpoints, then setting a reasonable cache size
can help reduce memory usage to avoid
-storing too many non frequent used producers.
+storing too many non-frequent used consumers.
]]>
</xs:documentation>
</xs:annotation>
@@ -11919,7 +11919,7 @@ storing too many non frequent used producers.
<xs:annotation>
<xs:documentation xml:lang="en">
<![CDATA[
-Ignore the invalidate endpoint exception when try to create a producer with
that endpoint. Default value: false
+Ignore the invalidate endpoint exception when try to create a consumer with
that endpoint. Default value: false
]]>
</xs:documentation>
</xs:annotation>
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-xml-io.xsd
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-xml-io.xsd
index a70a1fe53e8..e90723ec228 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-xml-io.xsd
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-xml-io.xsd
@@ -10578,12 +10578,12 @@ recommended to use a timeout value. Default value: -1
Sets the maximum size used by the org.apache.camel.spi.ConsumerCache which is
used to cache and reuse consumers when
uris are reused. Beware that when using dynamic endpoints then it affects how
well the cache can be utilized. If each
dynamic endpoint is unique then its best to turn off caching by setting this
to -1, which allows Camel to not cache both
-the producers and endpoints; they are regarded as prototype scoped and will be
stopped and discarded after use. This
-reduces memory usage as otherwise producers/endpoints are stored in memory in
the caches. However if there are a high
-degree of dynamic endpoints that have been used before, then it can benefit to
use the cache to reuse both producers and
+the consumers and endpoints; they are regarded as prototype scoped and will be
stopped and discarded after use. This
+reduces memory usage as otherwise consumers/endpoints are stored in memory in
the caches. However, if there are a high
+degree of dynamic endpoints that have been used before, then it can benefit to
use the cache to reuse both consumers and
endpoints and therefore the cache size can be set accordingly or rely on the
default size (1000). If there is a mix of
unique and used before dynamic endpoints, then setting a reasonable cache size
can help reduce memory usage to avoid
-storing too many non frequent used producers.
+storing too many non-frequent used consumers.
]]>
</xs:documentation>
</xs:annotation>
@@ -10592,7 +10592,7 @@ storing too many non frequent used producers.
<xs:annotation>
<xs:documentation xml:lang="en">
<![CDATA[
-Ignore the invalidate endpoint exception when try to create a producer with
that endpoint. Default value: false
+Ignore the invalidate endpoint exception when try to create a consumer with
that endpoint. Default value: false
]]>
</xs:documentation>
</xs:annotation>
diff --git
a/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/pollEnrich.json
b/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/pollEnrich.json
index da0d13e98c7..3042a9f35e8 100644
---
a/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/pollEnrich.json
+++
b/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/pollEnrich.json
@@ -22,8 +22,8 @@
"aggregationStrategyMethodAllowNull": { "index": 7, "kind": "attribute",
"displayName": "Aggregation Strategy Method Allow Null", "group": "advanced",
"label": "advanced", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "If this option is false then the aggregate method is not used
if there was no data to enrich. If this option is true then null values is used
as the oldExchange (when no dat [...]
"aggregateOnException": { "index": 8, "kind": "attribute", "displayName":
"Aggregate On Exception", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description": "If
this option is false then the aggregate method is not used if there was an
exception thrown while trying to retrieve the data to enrich from the resource.
Setting this option [...]
"timeout": { "index": 9, "kind": "attribute", "displayName": "Timeout",
"group": "common", "required": false, "type": "duration", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "-1", "description": "Timeout in millis when polling from the
external service. The timeout has influence about the poll enrich behavior. It
basically operations in three different modes: negative value - Waits until a
message is available and then ret [...]
- "cacheSize": { "index": 10, "kind": "attribute", "displayName": "Cache
Size", "group": "advanced", "label": "advanced", "required": false, "type":
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired":
false, "secret": false, "description": "Sets the maximum size used by the
org.apache.camel.spi.ConsumerCache which is used to cache and reuse consumers
when uris are reused. Beware that when using dynamic endpoints then it affects
how well the cache can be utiliz [...]
- "ignoreInvalidEndpoint": { "index": 11, "kind": "attribute",
"displayName": "Ignore Invalid Endpoint", "group": "advanced", "label":
"advanced", "required": false, "type": "boolean", "javaType":
"java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Ignore the invalidate endpoint exception
when try to create a producer with that endpoint" },
+ "cacheSize": { "index": 10, "kind": "attribute", "displayName": "Cache
Size", "group": "advanced", "label": "advanced", "required": false, "type":
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired":
false, "secret": false, "description": "Sets the maximum size used by the
org.apache.camel.spi.ConsumerCache which is used to cache and reuse consumers
when uris are reused. Beware that when using dynamic endpoints then it affects
how well the cache can be utiliz [...]
+ "ignoreInvalidEndpoint": { "index": 11, "kind": "attribute",
"displayName": "Ignore Invalid Endpoint", "group": "advanced", "label":
"advanced", "required": false, "type": "boolean", "javaType":
"java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Ignore the invalidate endpoint exception
when try to create a consumer with that endpoint" },
"allowOptimisedComponents": { "index": 12, "kind": "attribute",
"displayName": "Allow Optimised Components", "group": "advanced", "label":
"advanced", "required": false, "type": "boolean", "javaType":
"java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": true, "description": "Whether to allow components to optimise
if they are org.apache.camel.spi.PollDynamicAware" },
"autoStartComponents": { "index": 13, "kind": "attribute", "displayName":
"Auto Start Components", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether to auto startup components when poll enricher is starting up." }
},
diff --git
a/core/camel-core-model/src/main/java/org/apache/camel/model/PollEnrichDefinition.java
b/core/camel-core-model/src/main/java/org/apache/camel/model/PollEnrichDefinition.java
index 1d0969e40ac..20bb0e1b5a6 100644
---
a/core/camel-core-model/src/main/java/org/apache/camel/model/PollEnrichDefinition.java
+++
b/core/camel-core-model/src/main/java/org/apache/camel/model/PollEnrichDefinition.java
@@ -218,15 +218,15 @@ public class PollEnrichDefinition extends ExpressionNode
*
* Beware that when using dynamic endpoints then it affects how well the
cache can be utilized. If each dynamic
* endpoint is unique then its best to turn off caching by setting this to
-1, which allows Camel to not cache both
- * the producers and endpoints; they are regarded as prototype scoped and
will be stopped and discarded after use.
- * This reduces memory usage as otherwise producers/endpoints are stored
in memory in the caches.
+ * the consumers and endpoints; they are regarded as prototype scoped and
will be stopped and discarded after use.
+ * This reduces memory usage as otherwise consumers/endpoints are stored
in memory in the caches.
*
- * However if there are a high degree of dynamic endpoints that have been
used before, then it can benefit to use
- * the cache to reuse both producers and endpoints and therefore the cache
size can be set accordingly or rely on
+ * However, if there are a high degree of dynamic endpoints that have been
used before, then it can benefit to use
+ * the cache to reuse both consumers and endpoints and therefore the cache
size can be set accordingly or rely on
* the default size (1000).
*
* If there is a mix of unique and used before dynamic endpoints, then
setting a reasonable cache size can help
- * reduce memory usage to avoid storing too many non frequent used
producers.
+ * reduce memory usage to avoid storing too many non-frequent used
consumers.
*
* @param cacheSize the cache size, use <tt>0</tt> for default cache
size, or <tt>-1</tt> to turn cache off.
* @return the builder
@@ -237,20 +237,21 @@ public class PollEnrichDefinition extends ExpressionNode
}
/**
+ /**
* Sets the maximum size used by the {@link
org.apache.camel.spi.ConsumerCache} which is used to cache and reuse
* consumers when uris are reused.
*
* Beware that when using dynamic endpoints then it affects how well the
cache can be utilized. If each dynamic
* endpoint is unique then its best to turn off caching by setting this to
-1, which allows Camel to not cache both
- * the producers and endpoints; they are regarded as prototype scoped and
will be stopped and discarded after use.
- * This reduces memory usage as otherwise producers/endpoints are stored
in memory in the caches.
+ * the consumers and endpoints; they are regarded as prototype scoped and
will be stopped and discarded after use.
+ * This reduces memory usage as otherwise consumers/endpoints are stored
in memory in the caches.
*
- * However if there are a high degree of dynamic endpoints that have been
used before, then it can benefit to use
- * the cache to reuse both producers and endpoints and therefore the cache
size can be set accordingly or rely on
+ * However, if there are a high degree of dynamic endpoints that have been
used before, then it can benefit to use
+ * the cache to reuse both consumers and endpoints and therefore the cache
size can be set accordingly or rely on
* the default size (1000).
*
* If there is a mix of unique and used before dynamic endpoints, then
setting a reasonable cache size can help
- * reduce memory usage to avoid storing too many non frequent used
producers.
+ * reduce memory usage to avoid storing too many non-frequent used
consumers.
*
* @param cacheSize the cache size, use <tt>0</tt> for default cache
size, or <tt>-1</tt> to turn cache off.
* @return the builder
@@ -261,7 +262,7 @@ public class PollEnrichDefinition extends ExpressionNode
}
/**
- * Ignore the invalidate endpoint exception when try to create a producer
with that endpoint
+ * Ignore the invalidate endpoint exception when try to create a consumer
with that endpoint
*
* @return the builder
*/
diff --git
a/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java
b/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java
index cc6227ceeef..c2fac936142 100644
---
a/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java
+++
b/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java
@@ -12033,12 +12033,12 @@ public final class ModelDeserializers extends
YamlDeserializerSupport {
@YamlProperty(name = "aggregationStrategyMethodName", type
= "string", description = "This option can be used to explicit declare the
method name to use, when using POJOs as the AggregationStrategy.", displayName
= "Aggregation Strategy Method Name"),
@YamlProperty(name = "allowOptimisedComponents", type =
"boolean", description = "Whether to allow components to optimise if they are
org.apache.camel.spi.PollDynamicAware", displayName = "Allow Optimised
Components"),
@YamlProperty(name = "autoStartComponents", type =
"boolean", description = "Whether to auto startup components when poll enricher
is starting up.", displayName = "Auto Start Components"),
- @YamlProperty(name = "cacheSize", type = "number",
description = "Sets the maximum size used by the
org.apache.camel.spi.ConsumerCache which is used to cache and reuse consumers
when uris are reused. Beware that when using dynamic endpoints then it affects
how well the cache can be utilized. If each dynamic endpoint is unique then its
best to turn off caching by setting this to -1, which allows Camel to not cache
both the producers and endpoints; they are regarded as [...]
+ @YamlProperty(name = "cacheSize", type = "number",
description = "Sets the maximum size used by the
org.apache.camel.spi.ConsumerCache which is used to cache and reuse consumers
when uris are reused. Beware that when using dynamic endpoints then it affects
how well the cache can be utilized. If each dynamic endpoint is unique then its
best to turn off caching by setting this to -1, which allows Camel to not cache
both the consumers and endpoints; they are regarded as [...]
@YamlProperty(name = "description", type = "string",
description = "Sets the description of this node", displayName = "Description"),
@YamlProperty(name = "disabled", type = "boolean",
description = "Whether to disable this EIP from the route during build time.
Once an EIP has been disabled then it cannot be enabled later at runtime.",
displayName = "Disabled"),
@YamlProperty(name = "expression", type =
"object:org.apache.camel.model.language.ExpressionDefinition", description =
"Expression that computes the endpoint uri to use as the resource endpoint to
enrich from", displayName = "Expression", oneOf = "expression"),
@YamlProperty(name = "id", type = "string", description =
"Sets the id of this node", displayName = "Id"),
- @YamlProperty(name = "ignoreInvalidEndpoint", type =
"boolean", description = "Ignore the invalidate endpoint exception when try to
create a producer with that endpoint", displayName = "Ignore Invalid Endpoint"),
+ @YamlProperty(name = "ignoreInvalidEndpoint", type =
"boolean", description = "Ignore the invalidate endpoint exception when try to
create a consumer with that endpoint", displayName = "Ignore Invalid Endpoint"),
@YamlProperty(name = "timeout", type = "string",
defaultValue = "-1", description = "Timeout in millis when polling from the
external service. The timeout has influence about the poll enrich behavior. It
basically operations in three different modes: negative value - Waits until a
message is available and then returns it. Warning that this method could block
indefinitely if no messages are available. 0 - Attempts to receive a message
exchange immediately without waiti [...]
@YamlProperty(name = "variableReceive", type = "string",
description = "To use a variable to store the received message body (only body,
not headers). This makes it handy to use variables for user data and to easily
control what data to use for sending and receiving. Important: When using
receive variable then the received body is stored only in this variable and not
on the current message.", displayName = "Variable Receive")
}
diff --git
a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json
b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json
index 22426483c41..6bf1f75fbbc 100644
---
a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json
+++
b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json
@@ -4127,7 +4127,7 @@
"cacheSize" : {
"type" : "number",
"title" : "Cache Size",
- "description" : "Sets the maximum size used by the
org.apache.camel.spi.ConsumerCache which is used to cache and reuse consumers
when uris are reused. Beware that when using dynamic endpoints then it affects
how well the cache can be utilized. If each dynamic endpoint is unique then its
best to turn off caching by setting this to -1, which allows Camel to not cache
both the producers and endpoints; they are regarded as prototype scoped and
will be stopped and discarded after [...]
+ "description" : "Sets the maximum size used by the
org.apache.camel.spi.ConsumerCache which is used to cache and reuse consumers
when uris are reused. Beware that when using dynamic endpoints then it affects
how well the cache can be utilized. If each dynamic endpoint is unique then its
best to turn off caching by setting this to -1, which allows Camel to not cache
both the consumers and endpoints; they are regarded as prototype scoped and
will be stopped and discarded after [...]
},
"description" : {
"type" : "string",
@@ -4147,7 +4147,7 @@
"ignoreInvalidEndpoint" : {
"type" : "boolean",
"title" : "Ignore Invalid Endpoint",
- "description" : "Ignore the invalidate endpoint exception when try
to create a producer with that endpoint"
+ "description" : "Ignore the invalidate endpoint exception when try
to create a consumer with that endpoint"
},
"timeout" : {
"type" : "string",