149.14. 带有调度轮询示例

示例每 10 秒轮询 Google 主页,并将页面写入文件 消息.html

from("timer://foo?fixedRate=true&delay=0&period=10000")
    .to("http://www.google.com")
    .setHeader(FileComponent.HEADER_FILE_NAME, "message.html").to("file:target/google");