实现自定义入站通道适配器最简单的方法是什么?

Fer*_*uri 7 spring-integration

我需要一个自定义适配器来轮询自定义资源.(它返回一个文件列表.)

它是否能够在弹簧集成中实现和使用它?

实施这种可轮询资源的最佳做法是什么?

Art*_*lan 6

<inbound-channel-adapter>:

<int:inbound-channel-adapter ref="source1" method="method1" channel="channel1">
    <int:poller fixed-rate="5000"/>
</int:inbound-channel-adapter>
Run Code Online (Sandbox Code Playgroud)

在哪里source1是这样的:

public class MyService {

   public List<File> method1() {
     ....
   }  

}
Run Code Online (Sandbox Code Playgroud)

每个fixed-rate间隔都会调用您的方法.