I use Apache Camel, which monitors a directory shared by numerous nodes for new files.
The requirement of the application is that processing should be started only when two different types of files show up in the monitored directory: fileA and fileB.
How to guarantee in Apache Camel that if node1 picks up fileA then node2 (or any other) will not pick up fileB?