2014-12-29 60 views

回答

0

得到答案!

 from("{{ftp.server}}") 
     .to("file:target/download") 
     .log("Downloaded file ${file:name} complete.") 
      .process(new Processor() { 
      public void process(Exchange exchange) throws Exception { 
      boolean isComplete = (Boolean)exchange.getProperties().get("CamelBatchComplete"); 
      }); 

isComplete將返回true否則爲false如果所有文件都被下載/使用。