Apache Camel File watch创建事件可以确保文件完整性吗

can Apache Camel File watch create event ensure file integrity

文件监视组件是否内置了文件完整性检查?这将确保文件格式完全完成。例如,文件监视的事件支持监视目录中的文件创建和。该文件可能正在 created/written 中,但尚未完全完成。 file-watch 是否监视文件文件在其 alerts/propagate 文件创建事件之前是否已完全形成.. 这样当我们抓取文件时,它不是部分的而是完全形成的。如果没有,我们是否可以配置以验证 a.file 状态:不是处于瞬态(正在更新)WIP 状态,而是 100% b.possible 文件完整性,算法保证文件在传输过程中不会被篡改当前目录和原始文件,如校验和等

查看文件组件的'readLock'属性:

Changed is using file length/modification timestamp to detect whether the file is currently being copied or not. Will at least use 1 sec to determine this, so this option cannot consume files as fast as the others, but can be more reliable as the JDK IO API cannot always determine whether a file is currently being used by another process. The option readLockCheckInterval can be used to set the check frequency.