Javadoc
Pauses the dispatching of the events from the underlying queue. It should be kept in mind that
the events will still be getting queued into the queue. The scope of this operation is the VM
on which it is invoked. In case the GatewaySender is parallel, the GatewaySender will be paused
on individual node where this API is called and the GatewaySender on other VM's can still
dispatch events. In case the GatewaySender is not parallel, and the running GatewaySender on
which this API is invoked is not primary then PRIMARY GatewaySender will still continue
dispatching events.
The batch of events that are in the process of being dispatched are dispatched irrespective of
the state of pause operation. We can expect maximum of one batch of events being received at
the GatewayReceiver even after the GatewaySenders were paused.