在一段特定时间后创建新文件Apache Camel File

时间:2018-02-20 16:08:57

标签: file routes apache-kafka apache-camel period

我有这条骆驼路线,从卡夫卡不断消耗。有没有办法在每10分钟内定义一次,例如, 要创建一个新文件?我需要每个文件都有不同的名称,因为文件不能与其他文件同名。我尝试过定时器和石英骆驼组件但没有成功。

from("kafka:testTopic?brokers=localhost:9092&groupId=01")
.to("file:C://DESTINATION?fileExist=Append&fileName=prefixName_${variable}.json");

0 个答案:

没有答案