Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Linux 64bits
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Description
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")