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 066d911e7726 CAMEL-27621: camel-scheduler - the timer exchange
properties are only set with includeMetadata (#31006)
066d911e7726 is described below
commit 066d911e7726808b46909d61bc0ae642b0462186
Author: allthingssecurity <[email protected]>
AuthorDate: Fri Nov 27 20:27:26 2026 +0530
CAMEL-27621: camel-scheduler - the timer exchange properties are only set
with includeMetadata (#31006)
1. The "Exchange Properties" section of the doc page said that the
scheduler adds the Exchange.TIMER_NAME and Exchange.TIMER_FIRED_TIME
properties when it fires. SchedulerConsumer.sendTimerExchange() sets
them, and the CamelMessageTimestamp header, only when includeMetadata
is true, which is false by default. The section now says so, and
mentions the CamelMessageTimestamp header. The catalog copy of the page
is updated too.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
.../org/apache/camel/catalog/docs/scheduler-component.adoc | 6 +++++-
components/camel-scheduler/src/main/docs/scheduler-component.adoc | 6 +++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/scheduler-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/scheduler-component.adoc
index e85a38ac0e05..5cb8074544a0 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/scheduler-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/scheduler-component.adoc
@@ -55,7 +55,7 @@ Consumer] page.
=== Exchange Properties
-When the timer is fired, it adds the following information as properties
+With `includeMetadata=true`, when the scheduler fires, the consumer adds the
following information as properties
to the `Exchange`:
[width="100%",cols="10%,10%,80%",options="header",]
@@ -67,6 +67,10 @@ to the `Exchange`:
|`Exchange.TIMER_FIRED_TIME` |`Date` |The time when the consumer fired.
|===
+It also sets the `CamelMessageTimestamp` header to the same time, in
milliseconds since the epoch.
+
+With the default `includeMetadata=false`, the consumer sets none of these
properties, nor the header.
+
=== Forcing the scheduler to trigger immediately when completed
To let the scheduler trigger as soon as the previous task is complete,
diff --git a/components/camel-scheduler/src/main/docs/scheduler-component.adoc
b/components/camel-scheduler/src/main/docs/scheduler-component.adoc
index e85a38ac0e05..5cb8074544a0 100644
--- a/components/camel-scheduler/src/main/docs/scheduler-component.adoc
+++ b/components/camel-scheduler/src/main/docs/scheduler-component.adoc
@@ -55,7 +55,7 @@ Consumer] page.
=== Exchange Properties
-When the timer is fired, it adds the following information as properties
+With `includeMetadata=true`, when the scheduler fires, the consumer adds the
following information as properties
to the `Exchange`:
[width="100%",cols="10%,10%,80%",options="header",]
@@ -67,6 +67,10 @@ to the `Exchange`:
|`Exchange.TIMER_FIRED_TIME` |`Date` |The time when the consumer fired.
|===
+It also sets the `CamelMessageTimestamp` header to the same time, in
milliseconds since the epoch.
+
+With the default `includeMetadata=false`, the consumer sets none of these
properties, nor the header.
+
=== Forcing the scheduler to trigger immediately when completed
To let the scheduler trigger as soon as the previous task is complete,