文件入站端点中的重新连接策略?

Reconnect strategy in File inbound endpoint?

我们在文件入站端点中有 "reconnect strategy" 吗?我不认为它只在 FTP 连接器上有。但是文章屏幕显示它是可用的。

https://dzone.com/articles/mulesoft-file-connector

对于 Mule 4,确实如此。你需要自己配置。您分享的 link 和官方文档都说您可以为文件连接器配置重新连接策略:https://docs.mulesoft.com/connectors/file/file-documentation#Reconnection

据我所知,所有的连接器都来自同一个接口,并且支持重新连接(如果适用)。

对于这些情况,我建议您依赖官方文档。

对于 mule 3,您应该查看基于轮询的 "File Transport":https://docs.mulesoft.com/mule-runtime/3.9/file-transport-reference

它不支持重新连接,如果您查看源代码,您还会看到 doConnect 未实现,因为它是基于轮询的:https://github.com/mulesoft/mule/blob/5ed22e1e60f584ea8f301ae5ffb16e5c0c5e25c1/transports/file/src/main/java/org/mule/transport/file/FileConnector.java#L299