Stopping a file inbound channel adapter after one one file is read

孤街醉人 提交于 2019-11-29 12:37:03
Gary Russell

You can use a FireOnceTrigger on the poller, or one of the techniques described in addition to that, in this answer.

To programmatically stop the adapter, close() the context, or call adapter.stop() (@Autowire the adapter as a SourcePollingChannelAdapter. Or use a <control-bus/> and send a message with payload "adapterId.stop()".

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!