java - What is Apache Camel's File "camelLock"? -


whenever start camel route file uri, see camel obtains "lock" on file. instance, if file named myinput.xml, camel creates "lock file" on it, in same directory, called myinput.xml.camellock.

  1. what , why camel use it?
  2. when camel "release" lock file (delete it)?
  3. most importantly, there way configure file uri not lock @ (and if so, how)?

hope helps friend

readlocks used consumers, poll files if has exclusive read-lock on file (i.e. file not in-progress or being written). camel wait until file lock granted after camel creates marker file , holds lock on camel maintain lock jdk io api cannot determine whether file being used process. option readlockcheckinterval can used set check frequency. option avail ftp component camel 2.8 onwards. notice camel 2.10.1 onwards ftp option fastexistscheck can enabled speedup readlock strategy.

notice camel 2.10 onwards read locks changed, filelock , rename use markerfile well, ensure not picking files may in process camel consumer running on node (eg cluster). supported file component (not ftp component).


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -