如果我有一个 activemq Camel 路由定义,例如
from('activemq:some.route')
.to('direct:some.other.route')
有没有一种方法可以通过以下方式以编程方式打开和关闭 activemq 端点的轮询:activemq polling on -> process all messages -> turn off -> wait for a period of time -> repeat
?
请注意,我可以使用石英作为它的计时部分,主要问题是 Camel 是否具有允许我说“打开 activemq 轮询,处理所有消息,然后关闭”的功能。