第 114 章 scheduler
仅支持消费者
调度程序组件用于在调度程序触发时生成消息交换。此组件与 Timer 组件类似,但它在调度方面提供更多功能。另外,此组件使用 JDK ScheduledExecutorService。其中,作为计时器使用 JDK Timer。
您只能消耗来自此端点的事件。
114.1. 依赖项 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
当在 Red Hat build of Camel Spring Boot 中使用 调度程序 时,请确保使用以下 Maven 依赖项来支持自动配置:
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-scheduler-starter</artifactId>
</dependency>