我正在使用带骆驼的弹簧靴。我配置了以下路线:
from("file://C:/LOGS/HTTPBESample?delay=1000&recursive=true&noop=true").process(new Processor() {
public void process(Exchange msg) {
File file = msg.getIn().getBody(File.class);
LOG.info("Processing file: " + file.getName()+" file size "+file.length());
rocessing file: " + s);
}
});
但是它只运行一次,延迟应该像没有发生的轮询器一样工作?