[
https://issues.apache.org/jira/browse/CAMEL-14982?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
michael elbaz updated CAMEL-14982:
----------------------------------
Description:
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 even if the method still accept string...+
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}
was:
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 even if the method still accept string...+
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}
> 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 even if the method still accept string...+
> 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)