Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Complete
-
None
Description
When transferring files and polling for transferred files, some mechanism is needed to prevent partially transferred files from being picked up.
A common technique is to write the file with a temporary name and atomically rename it when complete. This is the technique used by Spring Integration components.
Another common technique is write a marker file indicating that the file is transferred. e.g. when foo.txt is completely written a second file foo.complete is written to indicate the file is ready for use.
Add a filter hierarchy that implements this technique.