I have a requirement to in my inbound sftp adapter to accept certain file format and if that accepted file format with unique name is processed already then audit duplicates in db and reject that duplicate file and move it to some archive location. I am not sure how that can be implemented. I did try using this class AbstractFileListFilter to extend my own custom filter but looks like it does not serve the purpose of accept once only filter.
Any suggestions. I did notice something in spring integration docs about SftpPersistentAcceptOnceFileListFilter but not sure how it can be customized.