第 268 章 Quartz 组件(已弃用)

作为 Camel 版本 1.0 可用

quartz: 组件使用 Quartz Scheduler 1.x 提供调度的消息交付。
每个端点代表不同的计时器(在 Quartz 术语中,一个 Trigger 和 JobDetail)。

提示

如果您正在使用 Quartz 2.x,那么从 Camel 2.12 开始,您应该使用 Quartz2 组件

Maven 用户需要将以下依赖项添加到其 pom.xml 中:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-quartz</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency>

268.1. URI 格式

quartz://timerName?options
quartz://groupName/timerName?options
quartz://groupName/timerName?cron=expression
quartz://timerName?cron=expression

组件使用 CronTriggerSimpleTrigger。如果没有提供 cron 表达式,则组件将使用一个简单的触发器。如果没有提供 groupName,则 quartz 组件会使用 Camel 组名称。

您可以使用以下格式在 URI 中附加查询选项 ?option=value&option=value&…​