I am using Apache Camel to handle files in a SFTP directory.The directory will receive many files in the same time.What can I do to control camel consumes the file in order? For example,directory my_directory will receive file file1,file2,file3,file4 in the same time. I want camel to consume then in the order of file1-file2-file3-file4.
您是否看过选项preSort
?
From this section , you could sort the file by file name with sortBy
option
This will sort by file name
sortBy=file:name
PS you may find many useful info from File component for FTP/SFTP component
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.