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 12e7c955fa0f CAMEL-23832: camel-scheduler - improve the component and
option descriptions (#30960)
12e7c955fa0f is described below
commit 12e7c955fa0f21bb4a21f44630279ab0b799157e
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 27 11:28:06 2026 +0100
CAMEL-23832: camel-scheduler - improve the component and option
descriptions (#30960)
This commit rewrites the component description, the texts of the 2
component options, 4 endpoint options and 1 header
of scheduler. The old includeMetadata text promised a timer count that the
consumer never sets, and did not say that the
metadata is the CamelTimerName and CamelTimerFiredTime exchange properties
and the CamelMessageTimestamp header. The new
texts also say that endpoints with the same name share one thread pool and
which consumer sets its size.
Documentation only, no behavior change. The component JSON, the catalog
copy, the doc page header and the DSL are
regenerated. camel-scheduler is marked as done in
tasks/component-descriptions.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../apache/camel/catalog/components/scheduler.json | 16 +++---
.../camel/catalog/docs/scheduler-component.adoc | 2 +-
.../camel/component/scheduler/scheduler.json | 16 +++---
.../src/main/docs/scheduler-component.adoc | 2 +-
.../component/scheduler/SchedulerComponent.java | 17 +++---
.../component/scheduler/SchedulerConstants.java | 4 +-
.../component/scheduler/SchedulerEndpoint.java | 35 ++++++------
.../component/ComponentsBuilderFactory.java | 2 +-
.../dsl/SchedulerComponentBuilderFactory.java | 15 +++---
.../builder/endpoint/EndpointHeaderBuilders.java | 2 +-
.../builder/endpoint/StaticEndpointBuilders.java | 16 ++++--
.../dsl/SchedulerEndpointBuilderFactory.java | 63 ++++++++++++++++------
tasks/component-descriptions.md | 2 +-
13 files changed, 117 insertions(+), 75 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/scheduler.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/scheduler.json
index 1db96c7de3a9..1cd8a4408582 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/scheduler.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/scheduler.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "scheduler",
"title": "Scheduler",
- "description": "Generate messages in specified intervals using
java.util.concurrent.ScheduledExecutorService.",
+ "description": "Generate messages on a schedule, by default at a fixed
delay using a java.util.concurrent.ScheduledExecutorService.",
"deprecated": false,
"firstVersion": "2.15.0",
"label": "core,scheduling",
@@ -25,27 +25,27 @@
},
"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 the
consumers add the time when the scheduler fired to each message, as the
CamelTimerName and CamelTimerFiredTime exchange properties and the
CamelMessageTimestamp header. The default for the include [...]
"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 [...]
"healthCheckConsumerEnabled": { "index": 3, "kind": "property",
"displayName": "Health Check Consumer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all consumer based health checks
from this component" },
"healthCheckProducerEnabled": { "index": 4, "kind": "property",
"displayName": "Health Check Producer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all producer based health checks
from this component. Notice: Camel has by default disabled all producer based
health-checks. You can turn on producer [...]
- "poolSize": { "index": 5, "kind": "property", "displayName": "Pool Size",
"group": "scheduler", "label": "scheduler", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 1, "description": "Number of core threads in
the thread pool used by the scheduling thread pool. Is by default using a
single thread" }
+ "poolSize": { "index": 5, "kind": "property", "displayName": "Pool Size",
"group": "scheduler", "label": "scheduler", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 1, "description": "The number of core threads
of the thread pool that the component creates for each scheduler name. The
default for the poolSize option of each endpoint that the component creates." }
},
"headers": {
- "CamelMessageTimestamp": { "index": 0, "kind": "header", "displayName":
"", "group": "consumer", "label": "", "required": false, "javaType": "long",
"deprecated": false, "autowired": false, "secret": false, "description": "The
timestamp of the message", "constantName":
"org.apache.camel.component.scheduler.SchedulerConstants#MESSAGE_TIMESTAMP" }
+ "CamelMessageTimestamp": { "index": 0, "kind": "header", "displayName":
"", "group": "consumer", "label": "", "required": false, "javaType": "long",
"deprecated": false, "autowired": false, "secret": false, "description": "The
time when the scheduler fired, in milliseconds since the epoch. Only set when
includeMetadata is true.", "constantName":
"org.apache.camel.component.scheduler.SchedulerConstants#MESSAGE_TIMESTAMP" }
},
"bodyTypes": {
"consumerOut": { "carriers": [ "null" ], "description": "No body: the
message only starts the route" }
},
"properties": {
- "name": { "index": 0, "kind": "path", "displayName": "Name", "group":
"consumer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the scheduler" },
- "includeMetadata": { "index": 1, "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." },
+ "name": { "index": 0, "kind": "path", "displayName": "Name", "group":
"consumer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the scheduler. The consumers of all endpoints with
the same name share one thread pool of the component, unless the scheduler or
scheduledExecutorService option is set. The threads of that pool are named
after it, and with includeMetadata [...]
+ "includeMetadata": { "index": 1, "kind": "parameter", "displayName":
"Include Metadata", "group": "consumer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "description": "Whether the
consumer adds the time when the scheduler fired to each message. If true, it
sets the CamelTimerName exchange property to the name, the CamelTimerFiredTime
exchange property to that time as a jav [...]
"sendEmptyMessageWhenIdle": { "index": 2, "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": 3, "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": 4, "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": 5, "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": 6, "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 pol
[...]
- "synchronous": { "index": 7, "kind": "parameter", "displayName":
"Synchronous", "group": "advanced", "label": "advanced", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "description": "Sets whether
synchronous processing should be strictly used" },
+ "synchronous": { "index": 7, "kind": "parameter", "displayName":
"Synchronous", "group": "advanced", "label": "advanced", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "description": "Whether the
consumer waits until each message is fully routed before the scheduler can fire
again, also when the route continues on another thread. If false, the consumer
uses the asynchronous routing engine, [...]
"backoffErrorThreshold": { "index": 8, "kind": "parameter", "displayName":
"Backoff Error Threshold", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "The number of subsequent
error polls (failed due some error) that should happen before the
backoffMultipler should kick-in." },
"backoffIdleThreshold": { "index": 9, "kind": "parameter", "displayName":
"Backoff Idle Threshold", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "The number of subsequent
idle polls that should happen before the backoffMultipler should kick-in." },
"backoffMultiplier": { "index": 10, "kind": "parameter", "displayName":
"Backoff Multiplier", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "To let the scheduled
polling consumer backoff if there has been a number of subsequent idles\/errors
in a row. The multiplier is then the number of polls that will be skipped
before the next actual attempt is h [...]
@@ -53,7 +53,7 @@
"greedy": { "index": 12, "kind": "parameter", "displayName": "Greedy",
"group": "scheduler", "label": "consumer,scheduler", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "If greedy is enabled,
then the ScheduledPollConsumer will run immediately again, if the previous run
polled 1 or more messages." },
"healthCheckMaxPollDuration": { "index": 13, "kind": "parameter",
"displayName": "Health Check Max Poll Duration", "group": "scheduler", "label":
"consumer,scheduler", "required": false, "type": "duration", "javaType":
"long", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "0", "description": "How long a poll may run before the health
check of the consumer reports DOWN. The health check is otherwise based on the
polls that are done, so it stays UP while a p [...]
"initialDelay": { "index": 14, "kind": "parameter", "displayName":
"Initial Delay", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "long", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": 1000, "description":
"Milliseconds before the first poll starts." },
- "poolSize": { "index": 15, "kind": "parameter", "displayName": "Pool
Size", "group": "scheduler", "label": "scheduler", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 1, "description": "Number of core threads in
the thread pool used by the scheduling thread pool. Is by default using a
single thread" },
+ "poolSize": { "index": 15, "kind": "parameter", "displayName": "Pool
Size", "group": "scheduler", "label": "scheduler", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 1, "description": "The number of core threads
of the thread pool that the component creates for the name. The consumer that
starts first with a name creates the pool with its poolSize, and the consumers
that start later with the same nam [...]
"repeatCount": { "index": 16, "kind": "parameter", "displayName": "Repeat
Count", "group": "scheduler", "label": "consumer,scheduler", "required": false,
"type": "integer", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 0, "description": "Specifies a maximum limit
of number of fires. So if you set it to 1, the scheduler 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." },
"runLoggingLevel": { "index": 17, "kind": "parameter", "displayName": "Run
Logging Level", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "enum", "javaType": "org.apache.camel.LoggingLevel",
"enum": [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ], "deprecated":
false, "autowired": false, "secret": false, "defaultValue": "TRACE",
"description": "The consumer logs a start\/complete log line when it polls.
This option allows you to configure the log [...]
"scheduledExecutorService": { "index": 18, "kind": "parameter",
"displayName": "Scheduled Executor Service", "group": "scheduler", "label":
"consumer,scheduler", "required": false, "type": "object", "javaType":
"java.util.concurrent.ScheduledExecutorService", "deprecated": false,
"autowired": false, "secret": false, "description": "Allows for configuring a
custom\/shared thread pool to use for the consumer. By default each consumer
has its own single threaded thread pool." },
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 d1fbe0d9891c..e85a38ac0e05 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
@@ -2,7 +2,7 @@
:doctitle: Scheduler
:shortname: scheduler
:artifactid: camel-scheduler
-:description: Generate messages in specified intervals using
java.util.concurrent.ScheduledExecutorService.
+:description: Generate messages on a schedule, by default at a fixed delay
using a java.util.concurrent.ScheduledExecutorService.
:since: 2.15
:supportlevel: Stable
:tabs-sync-option:
diff --git
a/components/camel-scheduler/src/generated/resources/META-INF/org/apache/camel/component/scheduler/scheduler.json
b/components/camel-scheduler/src/generated/resources/META-INF/org/apache/camel/component/scheduler/scheduler.json
index 1db96c7de3a9..1cd8a4408582 100644
---
a/components/camel-scheduler/src/generated/resources/META-INF/org/apache/camel/component/scheduler/scheduler.json
+++
b/components/camel-scheduler/src/generated/resources/META-INF/org/apache/camel/component/scheduler/scheduler.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "scheduler",
"title": "Scheduler",
- "description": "Generate messages in specified intervals using
java.util.concurrent.ScheduledExecutorService.",
+ "description": "Generate messages on a schedule, by default at a fixed
delay using a java.util.concurrent.ScheduledExecutorService.",
"deprecated": false,
"firstVersion": "2.15.0",
"label": "core,scheduling",
@@ -25,27 +25,27 @@
},
"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 the
consumers add the time when the scheduler fired to each message, as the
CamelTimerName and CamelTimerFiredTime exchange properties and the
CamelMessageTimestamp header. The default for the include [...]
"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 [...]
"healthCheckConsumerEnabled": { "index": 3, "kind": "property",
"displayName": "Health Check Consumer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all consumer based health checks
from this component" },
"healthCheckProducerEnabled": { "index": 4, "kind": "property",
"displayName": "Health Check Producer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all producer based health checks
from this component. Notice: Camel has by default disabled all producer based
health-checks. You can turn on producer [...]
- "poolSize": { "index": 5, "kind": "property", "displayName": "Pool Size",
"group": "scheduler", "label": "scheduler", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 1, "description": "Number of core threads in
the thread pool used by the scheduling thread pool. Is by default using a
single thread" }
+ "poolSize": { "index": 5, "kind": "property", "displayName": "Pool Size",
"group": "scheduler", "label": "scheduler", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 1, "description": "The number of core threads
of the thread pool that the component creates for each scheduler name. The
default for the poolSize option of each endpoint that the component creates." }
},
"headers": {
- "CamelMessageTimestamp": { "index": 0, "kind": "header", "displayName":
"", "group": "consumer", "label": "", "required": false, "javaType": "long",
"deprecated": false, "autowired": false, "secret": false, "description": "The
timestamp of the message", "constantName":
"org.apache.camel.component.scheduler.SchedulerConstants#MESSAGE_TIMESTAMP" }
+ "CamelMessageTimestamp": { "index": 0, "kind": "header", "displayName":
"", "group": "consumer", "label": "", "required": false, "javaType": "long",
"deprecated": false, "autowired": false, "secret": false, "description": "The
time when the scheduler fired, in milliseconds since the epoch. Only set when
includeMetadata is true.", "constantName":
"org.apache.camel.component.scheduler.SchedulerConstants#MESSAGE_TIMESTAMP" }
},
"bodyTypes": {
"consumerOut": { "carriers": [ "null" ], "description": "No body: the
message only starts the route" }
},
"properties": {
- "name": { "index": 0, "kind": "path", "displayName": "Name", "group":
"consumer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the scheduler" },
- "includeMetadata": { "index": 1, "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." },
+ "name": { "index": 0, "kind": "path", "displayName": "Name", "group":
"consumer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the scheduler. The consumers of all endpoints with
the same name share one thread pool of the component, unless the scheduler or
scheduledExecutorService option is set. The threads of that pool are named
after it, and with includeMetadata [...]
+ "includeMetadata": { "index": 1, "kind": "parameter", "displayName":
"Include Metadata", "group": "consumer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "description": "Whether the
consumer adds the time when the scheduler fired to each message. If true, it
sets the CamelTimerName exchange property to the name, the CamelTimerFiredTime
exchange property to that time as a jav [...]
"sendEmptyMessageWhenIdle": { "index": 2, "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": 3, "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": 4, "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": 5, "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": 6, "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 pol
[...]
- "synchronous": { "index": 7, "kind": "parameter", "displayName":
"Synchronous", "group": "advanced", "label": "advanced", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "description": "Sets whether
synchronous processing should be strictly used" },
+ "synchronous": { "index": 7, "kind": "parameter", "displayName":
"Synchronous", "group": "advanced", "label": "advanced", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "description": "Whether the
consumer waits until each message is fully routed before the scheduler can fire
again, also when the route continues on another thread. If false, the consumer
uses the asynchronous routing engine, [...]
"backoffErrorThreshold": { "index": 8, "kind": "parameter", "displayName":
"Backoff Error Threshold", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "The number of subsequent
error polls (failed due some error) that should happen before the
backoffMultipler should kick-in." },
"backoffIdleThreshold": { "index": 9, "kind": "parameter", "displayName":
"Backoff Idle Threshold", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "The number of subsequent
idle polls that should happen before the backoffMultipler should kick-in." },
"backoffMultiplier": { "index": 10, "kind": "parameter", "displayName":
"Backoff Multiplier", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "To let the scheduled
polling consumer backoff if there has been a number of subsequent idles\/errors
in a row. The multiplier is then the number of polls that will be skipped
before the next actual attempt is h [...]
@@ -53,7 +53,7 @@
"greedy": { "index": 12, "kind": "parameter", "displayName": "Greedy",
"group": "scheduler", "label": "consumer,scheduler", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "If greedy is enabled,
then the ScheduledPollConsumer will run immediately again, if the previous run
polled 1 or more messages." },
"healthCheckMaxPollDuration": { "index": 13, "kind": "parameter",
"displayName": "Health Check Max Poll Duration", "group": "scheduler", "label":
"consumer,scheduler", "required": false, "type": "duration", "javaType":
"long", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "0", "description": "How long a poll may run before the health
check of the consumer reports DOWN. The health check is otherwise based on the
polls that are done, so it stays UP while a p [...]
"initialDelay": { "index": 14, "kind": "parameter", "displayName":
"Initial Delay", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "long", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": 1000, "description":
"Milliseconds before the first poll starts." },
- "poolSize": { "index": 15, "kind": "parameter", "displayName": "Pool
Size", "group": "scheduler", "label": "scheduler", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 1, "description": "Number of core threads in
the thread pool used by the scheduling thread pool. Is by default using a
single thread" },
+ "poolSize": { "index": 15, "kind": "parameter", "displayName": "Pool
Size", "group": "scheduler", "label": "scheduler", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 1, "description": "The number of core threads
of the thread pool that the component creates for the name. The consumer that
starts first with a name creates the pool with its poolSize, and the consumers
that start later with the same nam [...]
"repeatCount": { "index": 16, "kind": "parameter", "displayName": "Repeat
Count", "group": "scheduler", "label": "consumer,scheduler", "required": false,
"type": "integer", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 0, "description": "Specifies a maximum limit
of number of fires. So if you set it to 1, the scheduler 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." },
"runLoggingLevel": { "index": 17, "kind": "parameter", "displayName": "Run
Logging Level", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "enum", "javaType": "org.apache.camel.LoggingLevel",
"enum": [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ], "deprecated":
false, "autowired": false, "secret": false, "defaultValue": "TRACE",
"description": "The consumer logs a start\/complete log line when it polls.
This option allows you to configure the log [...]
"scheduledExecutorService": { "index": 18, "kind": "parameter",
"displayName": "Scheduled Executor Service", "group": "scheduler", "label":
"consumer,scheduler", "required": false, "type": "object", "javaType":
"java.util.concurrent.ScheduledExecutorService", "deprecated": false,
"autowired": false, "secret": false, "description": "Allows for configuring a
custom\/shared thread pool to use for the consumer. By default each consumer
has its own single threaded thread pool." },
diff --git a/components/camel-scheduler/src/main/docs/scheduler-component.adoc
b/components/camel-scheduler/src/main/docs/scheduler-component.adoc
index d1fbe0d9891c..e85a38ac0e05 100644
--- a/components/camel-scheduler/src/main/docs/scheduler-component.adoc
+++ b/components/camel-scheduler/src/main/docs/scheduler-component.adoc
@@ -2,7 +2,7 @@
:doctitle: Scheduler
:shortname: scheduler
:artifactid: camel-scheduler
-:description: Generate messages in specified intervals using
java.util.concurrent.ScheduledExecutorService.
+:description: Generate messages on a schedule, by default at a fixed delay
using a java.util.concurrent.ScheduledExecutorService.
:since: 2.15
:supportlevel: Stable
:tabs-sync-option:
diff --git
a/components/camel-scheduler/src/main/java/org/apache/camel/component/scheduler/SchedulerComponent.java
b/components/camel-scheduler/src/main/java/org/apache/camel/component/scheduler/SchedulerComponent.java
index b68ec4b1155e..790ea43ddb56 100644
---
a/components/camel-scheduler/src/main/java/org/apache/camel/component/scheduler/SchedulerComponent.java
+++
b/components/camel-scheduler/src/main/java/org/apache/camel/component/scheduler/SchedulerComponent.java
@@ -32,9 +32,14 @@ public class SchedulerComponent extends HealthCheckComponent
{
private final Map<String, ScheduledExecutorServiceHolder> executors = new
ConcurrentHashMap<>();
- @Metadata
+ @Metadata(description = "Whether the consumers add the time when the
scheduler fired to each message, as the"
+ + " CamelTimerName and CamelTimerFiredTime
exchange properties and the CamelMessageTimestamp"
+ + " header. The default for the includeMetadata
option of each endpoint that the component"
+ + " creates.")
private boolean includeMetadata;
- @Metadata(defaultValue = "1", label = "scheduler")
+ @Metadata(defaultValue = "1", label = "scheduler",
+ description = "The number of core threads of the thread pool
that the component creates for each scheduler"
+ + " name. The default for the poolSize option of
each endpoint that the component creates.")
private int poolSize = 1;
public SchedulerComponent() {
@@ -53,9 +58,6 @@ public class SchedulerComponent extends HealthCheckComponent {
return includeMetadata;
}
- /**
- * Whether to include metadata in the exchange such as fired time, timer
name, timer count etc.
- */
public void setIncludeMetadata(boolean includeMetadata) {
this.includeMetadata = includeMetadata;
}
@@ -64,11 +66,6 @@ public class SchedulerComponent extends HealthCheckComponent
{
return poolSize;
}
- /**
- * Number of core threads in the thread pool used by the scheduling thread
pool.
- * <p/>
- * Is by default using a single thread
- */
public void setPoolSize(int poolSize) {
this.poolSize = poolSize;
}
diff --git
a/components/camel-scheduler/src/main/java/org/apache/camel/component/scheduler/SchedulerConstants.java
b/components/camel-scheduler/src/main/java/org/apache/camel/component/scheduler/SchedulerConstants.java
index 56bbd5436d08..551b0c9b679e 100644
---
a/components/camel-scheduler/src/main/java/org/apache/camel/component/scheduler/SchedulerConstants.java
+++
b/components/camel-scheduler/src/main/java/org/apache/camel/component/scheduler/SchedulerConstants.java
@@ -21,7 +21,9 @@ import org.apache.camel.spi.Metadata;
public final class SchedulerConstants {
- @Metadata(description = "The timestamp of the message", javaType = "long")
+ @Metadata(description = "The time when the scheduler fired, in
milliseconds since the epoch. Only set when"
+ + " includeMetadata is true.",
+ javaType = "long")
public static final String MESSAGE_TIMESTAMP = Exchange.MESSAGE_TIMESTAMP;
private SchedulerConstants() {
diff --git
a/components/camel-scheduler/src/main/java/org/apache/camel/component/scheduler/SchedulerEndpoint.java
b/components/camel-scheduler/src/main/java/org/apache/camel/component/scheduler/SchedulerEndpoint.java
index 7d826a711131..6cc9fb5ec9d2 100644
---
a/components/camel-scheduler/src/main/java/org/apache/camel/component/scheduler/SchedulerEndpoint.java
+++
b/components/camel-scheduler/src/main/java/org/apache/camel/component/scheduler/SchedulerEndpoint.java
@@ -33,7 +33,8 @@ import
org.apache.camel.support.DefaultScheduledPollConsumerScheduler;
import org.apache.camel.support.ScheduledPollEndpoint;
/**
- * Generate messages in specified intervals using
<code>java.util.concurrent.ScheduledExecutorService</code>.
+ * Generate messages on a schedule, by default at a fixed delay using a
+ * <code>java.util.concurrent.ScheduledExecutorService</code>.
*
* This component is similar to the timer component, but it offers more
functionality in terms of scheduling. Also this
* component uses JDK ScheduledExecutorService. Where as the timer uses a JDK
Timer.
@@ -44,15 +45,28 @@ import org.apache.camel.support.ScheduledPollEndpoint;
@BodyTypes(consumerOut = @BodyType(value = Carrier.NULL, description = "No
body: the message only starts the route"))
public class SchedulerEndpoint extends ScheduledPollEndpoint {
- @UriPath
+ @UriPath(description = "The name of the scheduler. The consumers of all
endpoints with the same name share one thread"
+ + " pool of the component, unless the scheduler or
scheduledExecutorService option is set. The"
+ + " threads of that pool are named after it, and
with includeMetadata the consumer sets the"
+ + " CamelTimerName exchange property to it.")
@Metadata(required = true)
private String name;
- @UriParam
+ @UriParam(description = "Whether the consumer adds the time when the
scheduler fired to each message. If true, it sets the"
+ + " CamelTimerName exchange property to the name,
the CamelTimerFiredTime exchange property to"
+ + " that time as a java.util.Date, and the
CamelMessageTimestamp header to that time in"
+ + " milliseconds since the epoch. If false, the
message has none of them.")
private boolean includeMetadata;
- @UriParam(defaultValue = "1", label = "scheduler")
+ @UriParam(defaultValue = "1", label = "scheduler",
+ description = "The number of core threads of the thread pool
that the component creates for the name. The"
+ + " consumer that starts first with a name creates
the pool with its poolSize, and the consumers"
+ + " that start later with the same name share that
pool. Not used when the scheduler or"
+ + " scheduledExecutorService option is set.")
private int poolSize = 1;
@UriParam(defaultValue = "false", label = "advanced",
- description = "Sets whether synchronous processing should be
strictly used")
+ description = "Whether the consumer waits until each message is
fully routed before the scheduler can fire"
+ + " again, also when the route continues on
another thread. If false, the consumer uses the"
+ + " asynchronous routing engine, and the scheduler
can fire again while a message that continues"
+ + " on another thread is still being routed.")
private boolean synchronous;
public SchedulerEndpoint(String uri, SchedulerComponent component, String
remaining) {
@@ -86,9 +100,6 @@ public class SchedulerEndpoint extends ScheduledPollEndpoint
{
return name;
}
- /**
- * The name of the scheduler
- */
public void setName(String name) {
this.name = name;
}
@@ -97,9 +108,6 @@ public class SchedulerEndpoint extends ScheduledPollEndpoint
{
return includeMetadata;
}
- /**
- * Whether to include metadata in the exchange such as fired time, timer
name, timer count etc.
- */
public void setIncludeMetadata(boolean includeMetadata) {
this.includeMetadata = includeMetadata;
}
@@ -108,11 +116,6 @@ public class SchedulerEndpoint extends
ScheduledPollEndpoint {
return poolSize;
}
- /**
- * Number of core threads in the thread pool used by the scheduling thread
pool.
- * <p/>
- * Is by default using a single thread
- */
public void setPoolSize(int poolSize) {
this.poolSize = poolSize;
}
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index c89096b9e79e..7cd52ee3789c 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -4589,7 +4589,7 @@ public interface ComponentsBuilderFactory {
}
/**
* Scheduler (camel-scheduler)
- * Generate messages in specified intervals using
+ * Generate messages on a schedule, by default at a fixed delay using a
* java.util.concurrent.ScheduledExecutorService.
*
* Category: core,scheduling
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SchedulerComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SchedulerComponentBuilderFactory.java
index c039c52ab196..3141860c8b03 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SchedulerComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SchedulerComponentBuilderFactory.java
@@ -24,7 +24,7 @@ import org.apache.camel.builder.component.ComponentBuilder;
import org.apache.camel.component.scheduler.SchedulerComponent;
/**
- * Generate messages in specified intervals using
+ * Generate messages on a schedule, by default at a fixed delay using a
* java.util.concurrent.ScheduledExecutorService.
*
* Generated by camel build tools - do NOT edit this file!
@@ -34,7 +34,7 @@ public interface SchedulerComponentBuilderFactory {
/**
* Scheduler (camel-scheduler)
- * Generate messages in specified intervals using
+ * Generate messages on a schedule, by default at a fixed delay using a
* java.util.concurrent.ScheduledExecutorService.
*
* Category: core,scheduling
@@ -82,8 +82,10 @@ public interface SchedulerComponentBuilderFactory {
/**
- * Whether to include metadata in the exchange such as fired time,
timer
- * name, timer count etc.
+ * Whether the consumers add the time when the scheduler fired to each
+ * message, as the CamelTimerName and CamelTimerFiredTime exchange
+ * properties and the CamelMessageTimestamp header. The default for the
+ * includeMetadata option of each endpoint that the component creates.
*
* The option is a: <code>boolean</code> type.
*
@@ -160,8 +162,9 @@ public interface SchedulerComponentBuilderFactory {
/**
- * Number of core threads in the thread pool used by the scheduling
- * thread pool. Is by default using a single thread.
+ * The number of core threads of the thread pool that the component
+ * creates for each scheduler name. The default for the poolSize option
+ * of each endpoint that the component creates.
*
* The option is a: <code>int</code> type.
*
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
index 2d9d252c0c1c..851e543a1d49 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
@@ -3710,7 +3710,7 @@ public class EndpointHeaderBuilders {
}
/**
* Scheduler (camel-scheduler)
- * Generate messages in specified intervals using
+ * Generate messages on a schedule, by default at a fixed delay using a
* java.util.concurrent.ScheduledExecutorService.
*
* Category: core,scheduling
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index c0cf489c3fe3..775eebf0de88 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -15422,7 +15422,7 @@ public class StaticEndpointBuilders {
}
/**
* Scheduler (camel-scheduler)
- * Generate messages in specified intervals using
+ * Generate messages on a schedule, by default at a fixed delay using a
* java.util.concurrent.ScheduledExecutorService.
*
* Category: core,scheduling
@@ -15432,7 +15432,11 @@ public class StaticEndpointBuilders {
* Syntax: <code>scheduler:name</code>
*
* Path parameter: name (required)
- * The name of the scheduler
+ * The name of the scheduler. The consumers of all endpoints with the same
+ * name share one thread pool of the component, unless the scheduler or
+ * scheduledExecutorService option is set. The threads of that pool are
+ * named after it, and with includeMetadata the consumer sets the
+ * CamelTimerName exchange property to it.
*
* @param path name
* @return the dsl builder
@@ -15442,7 +15446,7 @@ public class StaticEndpointBuilders {
}
/**
* Scheduler (camel-scheduler)
- * Generate messages in specified intervals using
+ * Generate messages on a schedule, by default at a fixed delay using a
* java.util.concurrent.ScheduledExecutorService.
*
* Category: core,scheduling
@@ -15452,7 +15456,11 @@ public class StaticEndpointBuilders {
* Syntax: <code>scheduler:name</code>
*
* Path parameter: name (required)
- * The name of the scheduler
+ * The name of the scheduler. The consumers of all endpoints with the same
+ * name share one thread pool of the component, unless the scheduler or
+ * scheduledExecutorService option is set. The threads of that pool are
+ * named after it, and with includeMetadata the consumer sets the
+ * CamelTimerName exchange property to it.
*
* @param componentName to use a custom component name for the endpoint
* instead of the default name
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SchedulerEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SchedulerEndpointBuilderFactory.java
index 66e3d5a44d02..5f2adbe3dcf2 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SchedulerEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SchedulerEndpointBuilderFactory.java
@@ -27,7 +27,7 @@ import org.apache.camel.builder.EndpointProducerBuilder;
import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
/**
- * Generate messages in specified intervals using
+ * Generate messages on a schedule, by default at a fixed delay using a
* java.util.concurrent.ScheduledExecutorService.
*
* Generated by camel build tools - do NOT edit this file!
@@ -46,8 +46,11 @@ public interface SchedulerEndpointBuilderFactory {
}
/**
- * Whether to include metadata in the exchange such as fired time,
timer
- * name, timer count etc.
+ * Whether the consumer adds the time when the scheduler fired to each
+ * message. If true, it sets the CamelTimerName exchange property to
the
+ * name, the CamelTimerFiredTime exchange property to that time as a
+ * java.util.Date, and the CamelMessageTimestamp header to that time in
+ * milliseconds since the epoch. If false, the message has none of
them.
*
* The option is a: <code>boolean</code> type.
*
@@ -62,8 +65,11 @@ public interface SchedulerEndpointBuilderFactory {
return this;
}
/**
- * Whether to include metadata in the exchange such as fired time,
timer
- * name, timer count etc.
+ * Whether the consumer adds the time when the scheduler fired to each
+ * message. If true, it sets the CamelTimerName exchange property to
the
+ * name, the CamelTimerFiredTime exchange property to that time as a
+ * java.util.Date, and the CamelMessageTimestamp header to that time in
+ * milliseconds since the epoch. If false, the message has none of
them.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -342,8 +348,11 @@ public interface SchedulerEndpointBuilderFactory {
return this;
}
/**
- * Number of core threads in the thread pool used by the scheduling
- * thread pool. Is by default using a single thread.
+ * The number of core threads of the thread pool that the component
+ * creates for the name. The consumer that starts first with a name
+ * creates the pool with its poolSize, and the consumers that start
+ * later with the same name share that pool. Not used when the
scheduler
+ * or scheduledExecutorService option is set.
*
* The option is a: <code>int</code> type.
*
@@ -358,8 +367,11 @@ public interface SchedulerEndpointBuilderFactory {
return this;
}
/**
- * Number of core threads in the thread pool used by the scheduling
- * thread pool. Is by default using a single thread.
+ * The number of core threads of the thread pool that the component
+ * creates for the name. The consumer that starts first with a name
+ * creates the pool with its poolSize, and the consumers that start
+ * later with the same name share that pool. Not used when the
scheduler
+ * or scheduledExecutorService option is set.
*
* The option will be converted to a <code>int</code> type.
*
@@ -806,7 +818,11 @@ public interface SchedulerEndpointBuilderFactory {
return this;
}
/**
- * Sets whether synchronous processing should be strictly used.
+ * Whether the consumer waits until each message is fully routed before
+ * the scheduler can fire again, also when the route continues on
+ * another thread. If false, the consumer uses the asynchronous routing
+ * engine, and the scheduler can fire again while a message that
+ * continues on another thread is still being routed.
*
* The option is a: <code>boolean</code> type.
*
@@ -821,7 +837,11 @@ public interface SchedulerEndpointBuilderFactory {
return this;
}
/**
- * Sets whether synchronous processing should be strictly used.
+ * Whether the consumer waits until each message is fully routed before
+ * the scheduler can fire again, also when the route continues on
+ * another thread. If false, the consumer uses the asynchronous routing
+ * engine, and the scheduler can fire again while a message that
+ * continues on another thread is still being routed.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -840,7 +860,7 @@ public interface SchedulerEndpointBuilderFactory {
public interface SchedulerBuilders {
/**
* Scheduler (camel-scheduler)
- * Generate messages in specified intervals using
+ * Generate messages on a schedule, by default at a fixed delay using a
* java.util.concurrent.ScheduledExecutorService.
*
* Category: core,scheduling
@@ -854,7 +874,7 @@ public interface SchedulerEndpointBuilderFactory {
}
/**
* Scheduler (camel-scheduler)
- * Generate messages in specified intervals using
+ * Generate messages on a schedule, by default at a fixed delay using a
* java.util.concurrent.ScheduledExecutorService.
*
* Category: core,scheduling
@@ -864,7 +884,11 @@ public interface SchedulerEndpointBuilderFactory {
* Syntax: <code>scheduler:name</code>
*
* Path parameter: name (required)
- * The name of the scheduler
+ * The name of the scheduler. The consumers of all endpoints with the
+ * same name share one thread pool of the component, unless the
+ * scheduler or scheduledExecutorService option is set. The threads of
+ * that pool are named after it, and with includeMetadata the consumer
+ * sets the CamelTimerName exchange property to it.
*
* @param path name
* @return the dsl builder
@@ -874,7 +898,7 @@ public interface SchedulerEndpointBuilderFactory {
}
/**
* Scheduler (camel-scheduler)
- * Generate messages in specified intervals using
+ * Generate messages on a schedule, by default at a fixed delay using a
* java.util.concurrent.ScheduledExecutorService.
*
* Category: core,scheduling
@@ -884,7 +908,11 @@ public interface SchedulerEndpointBuilderFactory {
* Syntax: <code>scheduler:name</code>
*
* Path parameter: name (required)
- * The name of the scheduler
+ * The name of the scheduler. The consumers of all endpoints with the
+ * same name share one thread pool of the component, unless the
+ * scheduler or scheduledExecutorService option is set. The threads of
+ * that pool are named after it, and with includeMetadata the consumer
+ * sets the CamelTimerName exchange property to it.
*
* @param componentName to use a custom component name for the endpoint
* instead of the default name
@@ -907,7 +935,8 @@ public interface SchedulerEndpointBuilderFactory {
public static final SchedulerHeaderNameBuilder INSTANCE = new
SchedulerHeaderNameBuilder();
/**
- * The timestamp of the message.
+ * The time when the scheduler fired, in milliseconds since the epoch.
+ * Only set when includeMetadata is true.
*
* The option is a: {@code long} type.
*
diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md
index fcd8a38e1e4f..c599b54dac60 100644
--- a/tasks/component-descriptions.md
+++ b/tasks/component-descriptions.md
@@ -327,7 +327,7 @@ or removes its row.
| camel-salesforce | salesforce | |
| camel-sap-netweaver | sap-netweaver | |
| camel-saxon | xquery | |
-| camel-scheduler | scheduler | |
+| camel-scheduler | scheduler | yes |
| camel-schematron | schematron | |
| camel-seda | seda | |
| camel-servicenow | servicenow | |