is equals to
pause/stop/resume the flow
Any message flow starts from consumer(subscriber) on the channel.
stop/pause/resume a service activator
So, you go right way: you should just stop your endpoint (PollingConsumer or EventDrivenConsumer) from it's SmartLifecycle abilities.
it will be enough to add an 'id' attribute for your <service-activator> and invoke it, e.g. from <control-bus>:
However be careful with that, you may end up with this one:
<transformer input-channel="sendStopCommandChannel" output-channel="controlBusChannel"
when you unsubscribe from chennels who implement AbstractSubscribableChannel.
org.springframework.integration.MessageDeliveryException: Dispatcher has no subscribers for channel ...
Hope that help