Spring 統合ポーラーを使用して、sftp サーバーからファイルをダウンロードしています
<int-sftp:inbound-channel-adapter channel="myFileDownloadChannel"
session-factory="mySftpSessionFactory"
remote-directory="#{remote}"
filter = "modifiedFileListFilter"
local-directory="#{local}"
auto-create-local-directory="true">
<integration:poller cron="10 * * * * *" default="true"/>
</int-sftp:inbound-channel-adapter>
<integration:service-activator input-channel="myFileDownloadChannel"
ref="errorTransformer"
output-channel="endChannel"/>
このコードを 6 つのサーバーで実行しています。
- 6 台のサーバーが 10 分ごとにポーリングしている場合、sftp サーバーをハングアップさせますか?
- ポーラーがトリガーされるたびに新しい接続を作成しますか?
ご意見をお聞かせください。