How can we combine readLockCheckInterval and maxMessagesPerPoll in camel file component configuration?

老子叫甜甜 提交于 2020-12-11 08:58:22

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!