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 bff24d860f44 CAMEL-25530: camel-timer - the includeMetadata option
names the exchange properties it sets, and that CamelTimerCounter starts at 1
(#27661)
bff24d860f44 is described below
commit bff24d860f442cdcf778782902202bf1e67c5da3
Author: Claus Ibsen <[email protected]>
AuthorDate: Sat Oct 10 15:06:55 2026 +0200
CAMEL-25530: camel-timer - the includeMetadata option names the exchange
properties it sets, and that CamelTimerCounter starts at 1 (#27661)
Claude-Session: https://claude.ai/code/session_01STT6whBgK1AqsSsUKrnE8m
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
---
.../org/apache/camel/catalog/components/timer.json | 4 ++--
.../META-INF/org/apache/camel/component/timer/timer.json | 4 ++--
.../org/apache/camel/component/timer/TimerComponent.java | 4 +++-
.../org/apache/camel/component/timer/TimerEndpoint.java | 4 +++-
.../component/dsl/TimerComponentBuilderFactory.java | 7 +++++--
.../builder/endpoint/dsl/TimerEndpointBuilderFactory.java | 14 ++++++++++----
6 files changed, 25 insertions(+), 12 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/timer.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/timer.json
index 30d99544faab..28e78be1017b 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/timer.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/timer.json
@@ -25,7 +25,7 @@
},
"componentProperties": {
"bridgeErrorHandler": { "index": 0, "kind": "property", "displayName":
"Bridge Error Handler", "group": "consumer", "label": "consumer", "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 messages, or the like [...]
- "includeMetadata": { "index": 1, "kind": "property", "displayName":
"Include Metadata", "group": "consumer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "description": "Whether to
include metadata in the exchange such as fired time, timer name, timer count
etc." },
+ "includeMetadata": { "index": 1, "kind": "property", "displayName":
"Include Metadata", "group": "consumer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "description": "Whether to
include metadata in the exchange: the exchange properties CamelTimerCounter
(the fire count, 1 on the first fire), CamelTimerName, CamelTimerPeriod,
CamelTimerFiredTime and CamelTimerTime (when the [...]
"autowiredEnabled": { "index": 2, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching t [...]
},
"headers": {
@@ -36,7 +36,7 @@
"timerName": { "index": 0, "kind": "path", "displayName": "Timer Name",
"group": "consumer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "description": "The name of the timer" },
"delay": { "index": 1, "kind": "parameter", "displayName": "Delay",
"group": "consumer", "label": "", "required": false, "type": "duration",
"javaType": "long", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "1000", "description": "The number of milliseconds to wait
before the first event is generated. Should not be used in conjunction with the
time option. The default value is 1000." },
"fixedRate": { "index": 2, "kind": "parameter", "displayName": "Fixed
Rate", "group": "consumer", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "Events take place at
approximately regular intervals, separated by the specified period." },
- "includeMetadata": { "index": 3, "kind": "parameter", "displayName":
"Include Metadata", "group": "consumer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "description": "Whether to
include metadata in the exchange such as fired time, timer name, timer count
etc." },
+ "includeMetadata": { "index": 3, "kind": "parameter", "displayName":
"Include Metadata", "group": "consumer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "description": "Whether to
include metadata in the exchange: the exchange properties CamelTimerCounter
(the fire count, 1 on the first fire), CamelTimerName, CamelTimerPeriod,
CamelTimerFiredTime and CamelTimerTime (when th [...]
"period": { "index": 4, "kind": "parameter", "displayName": "Period",
"group": "consumer", "label": "", "required": false, "type": "duration",
"javaType": "long", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "1000", "description": "Generate periodic events every period.
Must be zero or positive value. The default value is 1000." },
"repeatCount": { "index": 5, "kind": "parameter", "displayName": "Repeat
Count", "group": "consumer", "label": "", "required": false, "type": "integer",
"javaType": "long", "deprecated": false, "autowired": false, "secret": false,
"description": "Specifies a maximum limit for the number of fires. Therefore,
if you set it to 1, the timer will only fire once. If you set it to 5, it will
only fire five times. A value of zero or negative means fire forever." },
"bridgeErrorHandler": { "index": 6, "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 [...]
diff --git
a/components/camel-timer/src/generated/resources/META-INF/org/apache/camel/component/timer/timer.json
b/components/camel-timer/src/generated/resources/META-INF/org/apache/camel/component/timer/timer.json
index 30d99544faab..28e78be1017b 100644
---
a/components/camel-timer/src/generated/resources/META-INF/org/apache/camel/component/timer/timer.json
+++
b/components/camel-timer/src/generated/resources/META-INF/org/apache/camel/component/timer/timer.json
@@ -25,7 +25,7 @@
},
"componentProperties": {
"bridgeErrorHandler": { "index": 0, "kind": "property", "displayName":
"Bridge Error Handler", "group": "consumer", "label": "consumer", "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 messages, or the like [...]
- "includeMetadata": { "index": 1, "kind": "property", "displayName":
"Include Metadata", "group": "consumer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "description": "Whether to
include metadata in the exchange such as fired time, timer name, timer count
etc." },
+ "includeMetadata": { "index": 1, "kind": "property", "displayName":
"Include Metadata", "group": "consumer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "description": "Whether to
include metadata in the exchange: the exchange properties CamelTimerCounter
(the fire count, 1 on the first fire), CamelTimerName, CamelTimerPeriod,
CamelTimerFiredTime and CamelTimerTime (when the [...]
"autowiredEnabled": { "index": 2, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching t [...]
},
"headers": {
@@ -36,7 +36,7 @@
"timerName": { "index": 0, "kind": "path", "displayName": "Timer Name",
"group": "consumer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "description": "The name of the timer" },
"delay": { "index": 1, "kind": "parameter", "displayName": "Delay",
"group": "consumer", "label": "", "required": false, "type": "duration",
"javaType": "long", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "1000", "description": "The number of milliseconds to wait
before the first event is generated. Should not be used in conjunction with the
time option. The default value is 1000." },
"fixedRate": { "index": 2, "kind": "parameter", "displayName": "Fixed
Rate", "group": "consumer", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "Events take place at
approximately regular intervals, separated by the specified period." },
- "includeMetadata": { "index": 3, "kind": "parameter", "displayName":
"Include Metadata", "group": "consumer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "description": "Whether to
include metadata in the exchange such as fired time, timer name, timer count
etc." },
+ "includeMetadata": { "index": 3, "kind": "parameter", "displayName":
"Include Metadata", "group": "consumer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "description": "Whether to
include metadata in the exchange: the exchange properties CamelTimerCounter
(the fire count, 1 on the first fire), CamelTimerName, CamelTimerPeriod,
CamelTimerFiredTime and CamelTimerTime (when th [...]
"period": { "index": 4, "kind": "parameter", "displayName": "Period",
"group": "consumer", "label": "", "required": false, "type": "duration",
"javaType": "long", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "1000", "description": "Generate periodic events every period.
Must be zero or positive value. The default value is 1000." },
"repeatCount": { "index": 5, "kind": "parameter", "displayName": "Repeat
Count", "group": "consumer", "label": "", "required": false, "type": "integer",
"javaType": "long", "deprecated": false, "autowired": false, "secret": false,
"description": "Specifies a maximum limit for the number of fires. Therefore,
if you set it to 1, the timer will only fire once. If you set it to 5, it will
only fire five times. A value of zero or negative means fire forever." },
"bridgeErrorHandler": { "index": 6, "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 [...]
diff --git
a/components/camel-timer/src/main/java/org/apache/camel/component/timer/TimerComponent.java
b/components/camel-timer/src/main/java/org/apache/camel/component/timer/TimerComponent.java
index 1367cb6fc0f8..601e3781724b 100644
---
a/components/camel-timer/src/main/java/org/apache/camel/component/timer/TimerComponent.java
+++
b/components/camel-timer/src/main/java/org/apache/camel/component/timer/TimerComponent.java
@@ -53,7 +53,9 @@ public class TimerComponent extends DefaultComponent {
}
/**
- * Whether to include metadata in the exchange such as fired time, timer
name, timer count etc.
+ * Whether to include metadata in the exchange: the exchange properties
CamelTimerCounter (the fire count, 1 on the
+ * first fire), CamelTimerName, CamelTimerPeriod, CamelTimerFiredTime and
CamelTimerTime (when the time option is
+ * set), and the headers CamelTimerFiredTime and CamelMessageTimestamp.
*/
@ManagedAttribute(description = "Include metadata")
public void setIncludeMetadata(boolean includeMetadata) {
diff --git
a/components/camel-timer/src/main/java/org/apache/camel/component/timer/TimerEndpoint.java
b/components/camel-timer/src/main/java/org/apache/camel/component/timer/TimerEndpoint.java
index 85328b98d766..e6a80deaa9ca 100644
---
a/components/camel-timer/src/main/java/org/apache/camel/component/timer/TimerEndpoint.java
+++
b/components/camel-timer/src/main/java/org/apache/camel/component/timer/TimerEndpoint.java
@@ -273,7 +273,9 @@ public class TimerEndpoint extends DefaultEndpoint
implements MultipleConsumersS
}
/**
- * Whether to include metadata in the exchange such as fired time, timer
name, timer count etc.
+ * Whether to include metadata in the exchange: the exchange properties
CamelTimerCounter (the fire count, 1 on the
+ * first fire), CamelTimerName, CamelTimerPeriod, CamelTimerFiredTime and
CamelTimerTime (when the time option is
+ * set), and the headers CamelTimerFiredTime and CamelMessageTimestamp.
*/
@ManagedAttribute(description = "Include metadata")
public void setIncludeMetadata(boolean includeMetadata) {
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/TimerComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/TimerComponentBuilderFactory.java
index 9b7512802c16..891876ed9f16 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/TimerComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/TimerComponentBuilderFactory.java
@@ -80,8 +80,11 @@ public interface TimerComponentBuilderFactory {
/**
- * Whether to include metadata in the exchange such as fired time,
timer
- * name, timer count etc.
+ * Whether to include metadata in the exchange: the exchange properties
+ * CamelTimerCounter (the fire count, 1 on the first fire),
+ * CamelTimerName, CamelTimerPeriod, CamelTimerFiredTime and
+ * CamelTimerTime (when the time option is set), and the headers
+ * CamelTimerFiredTime and CamelMessageTimestamp.
*
* The option is a: <code>boolean</code> type.
*
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/TimerEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/TimerEndpointBuilderFactory.java
index f5d723d24a32..67f42f369783 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/TimerEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/TimerEndpointBuilderFactory.java
@@ -111,8 +111,11 @@ public interface TimerEndpointBuilderFactory {
return this;
}
/**
- * Whether to include metadata in the exchange such as fired time,
timer
- * name, timer count etc.
+ * Whether to include metadata in the exchange: the exchange properties
+ * CamelTimerCounter (the fire count, 1 on the first fire),
+ * CamelTimerName, CamelTimerPeriod, CamelTimerFiredTime and
+ * CamelTimerTime (when the time option is set), and the headers
+ * CamelTimerFiredTime and CamelMessageTimestamp.
*
* The option is a: <code>boolean</code> type.
*
@@ -127,8 +130,11 @@ public interface TimerEndpointBuilderFactory {
return this;
}
/**
- * Whether to include metadata in the exchange such as fired time,
timer
- * name, timer count etc.
+ * Whether to include metadata in the exchange: the exchange properties
+ * CamelTimerCounter (the fire count, 1 on the first fire),
+ * CamelTimerName, CamelTimerPeriod, CamelTimerFiredTime and
+ * CamelTimerTime (when the time option is set), and the headers
+ * CamelTimerFiredTime and CamelMessageTimestamp.
*
* The option will be converted to a <code>boolean</code> type.
*