title: File Poller implementation in Spring Boot-Camel Application
body: <p>I am new to Apache Camel Framework. I have to develop an application in Spring Boot and Camel which polls given directory repeatedly(even after the directory undergo any modifications, the poller should go on polling for another scheduled interval and so on.
  I found something like below code in camel.</p>
  
  <p>public class FilePoller extends RouteBuilder {</p>
  
  <pre><code>@Override
  public void configure() {
      from("file:H:\\InputFolder?delay=1000&amp;noop=true")
      .process(new Processor() {
          public void process(Exchange msg) {
              File file = msg.getIn().getBody(File.class);
              //LOG.info("Processing file: " + file);
              System.out.println("Polling file:"+file);
  
          }
  
  }); 
  }
  </code></pre>
  
  <p>}</p>
  
  <p>The above code only waits for 1 second and then execute the subsequent code without polling the directory.</p>
  
  <p>Can anybody help me in developing a Spring Boot-Camel application that polls a directory or a file repeatedly every given interval of time. Thanks in advance </p>