0

我使用以下配置的入站通道适配器:

<file:inbound-channel-adapter id="myAdapter"                        
                              directory="inDir"
                              auto-create-directory="true"
                              prevent-duplicates="true"
                              channel = "inChannel">
    <int:poller id="myPoller" cron="0/2 * * * * *"/>
</file:inbound-channel-adapter>

此通道适配器在“inDir”下扫描以查找新文件。我希望从适配器处理第一个传入文件,因为现在我可以看到适配器采用文件名的算术或字母顺序获取文件。怎样才能实现FIFO逻辑?

4

1 回答 1

1

您可以提供FileListFilter对文件进行排序的自定义。

于 2013-05-29T14:30:00.597 回答