Our application uses a Spring Integration file:inbound-channel-adapter
to poll a directory to listen to when a file is dropped there. Spring Integration then st
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()"
.