[ 
https://issues.apache.org/jira/browse/CAMEL-14982?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

michael elbaz updated CAMEL-14982:
----------------------------------
    Summary: File never consumed using delay  (was: File never consumed )

> File never consumed using delay
> -------------------------------
>
>                 Key: CAMEL-14982
>                 URL: https://issues.apache.org/jira/browse/CAMEL-14982
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-file-watch
>    Affects Versions: 3.2.0
>            Reporter: michael elbaz
>            Priority: Major
>
> Is not about *camel-file-watch* but *camel-file* it doesn't appear in 
> components list...
> When using file component with delay option the files will never be 
> consummated if timeUnit != milliseconds 
> Il also see that using delay with string (`.delay("2s")`) is not accepted 
> anymore i got an exception
> Some code
> {code:java}
>   @Override
>     public void configure() throws Exception {
>         from(fileEndpoint("myDir"))
>                 // route...
>         ;
>     }
> private EndpointConsumerBuilder fileEndpoint(String directory) {
>         return file(directory)
>                 .delay(2)
>                 .timeUnit(TimeUnit.SECONDS);
>     }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to