问题
We are facing problem that camel file component readLockCheckInterval allow single file to be processed at a time and for next file camel lock, it will wait for readLockCheckInterval time. We have 10000 or more files which we want to process in parallel. I want to use maxMessagesPerPoll attribute for accessing multiple file per poll but with readLockCheckInterval because camel release the file lock if the file is still being copied. It will be great help if there will be any other way to achieve solution to above problem. Route configuration I am trying is as below,
from("inputFolder?recursive=true&moveFailed=.error&readLock=changed&readLockCheckInterval=5000&readLockTimeout=20000&maxMessagesPerPoll=5&eagerMaxMessagesPerPoll=true")
来源:https://stackoverflow.com/questions/53780257/how-can-we-combine-readlockcheckinterval-and-maxmessagesperpoll-in-camel-file-co