File consumer should let user specify readlock checking period
--------------------------------------------------------------

                 Key: CAMEL-3520
                 URL: https://issues.apache.org/jira/browse/CAMEL-3520
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
         Environment: Linux 64bits
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)

            Reporter: Pham Ngoc Hai
            Priority: Minor


Currently the only reliable readLock that we can use is "changed", but even 
with that, the default setting is 1 second which is not long enough if the file 
is being written to very slowly. So we have to provide a 
exclusiveReadLockStrategy which is exactly the same as 
FileChangedExclusiveReadLockStrategy with a longer sleep time.
It'll be great if we can have an option like readLockCheckInterval so users can 
specify how long the file should be checked again.
Something like:
from("file:/data/inbox?readLock=changed&readLockCheckInterval=5000&readLockTimeout=60000")


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to