349.6. 仅触发一次

可从 Camel 2.8 开始

您可能只想在 Camel 路由中触发一条消息,例如在启动路由时。要做到这一点,使用 repeatCount 选项:

<route>
  <from uri="timer://foo?repeatCount=1"/>
  <to uri="bean:myBean?method=someMethodName"/>
</route>