[英]Spring Integration file only once from SFTP across several sessions
I have a Spring Integration WorkFlow which downloads files from a SFTP directory.我有一个 Spring Integration WorkFlow,它从 SFTP 目录下载文件。 This is done with a RemoteFileInboundChannelAdapterSpec and IntegrationFlows.这是通过 RemoteFileInboundChannelAdapterSpec 和 IntegrationFlows 完成的。
Spring Integration remembers within a session which files it has already downloaded, can I do this across sessions eg through a database and if so how? Spring Integration 在会话中记住它已经下载了哪些文件,我是否可以跨会话执行此操作,例如通过数据库执行此操作,如果可以,如何执行?
It is done not within the session, but by some specific FileListFilter
implementation .它不是在会话中完成的,而是由一些特定的FileListFilter
实现完成的。 For your goal we suggest an SftpPersistentAcceptOnceFileListFilter
where its MetadataStore
could really be based on some shared database.为了您的目标,我们建议使用SftpPersistentAcceptOnceFileListFilter
,其MetadataStore
可以真正基于某个共享数据库。 See more in docs: https://docs.spring.io/spring-integration/docs/current/reference/html/sftp.html#sftp-inbound在文档中查看更多信息: https : //docs.spring.io/spring-integration/docs/current/reference/html/sftp.html#sftp-inbound
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.