Hello,
I am using camel version 2.9.2 . Can anyone help me to know that, How to
restrict duplicate files adding into idempotent repository irrespective of
cache size , means any number of files in source directory but no files
should be added twice to the repository .
<bean id="fileStore"
class="org.apache.camel.processor.idempotent.FileIdempotentRepository">
<property name="fileStore"
value="D:/filestore/eclFileStore.dat" />
<property name="cacheSize" value="5000" />
</bean>
====================================================================
<route id="ResFiles">
<from
uri="ftp://user@***.**.**.*:**/xyz?filter=#ResFilter&readLock=changed&idempotent=true&idempotentRepository=#fileStore&delay=2000&readLockCheckInterval=1000&localWorkDirectory=C:/temp&passiveMode=true&disconnect=true&password=****"
/>
<to uri="file:\\*****" />
</route>
In the above scenario I am only able to restrict the number of entries
depending on cacheSize value but not above it . Kindly help .
--
View this message in context:
http://camel.465427.n5.nabble.com/Restricting-the-duplicate-files-to-be-added-into-idempotent-repository-irrespective-of-cacheSize-vale-tp5750853.html
Sent from the Camel - Users mailing list archive at Nabble.com.