At present once a queue has been configured to generate events and the replicating event listener plugin has beenactivated there is no way to stop replication in a way that would allow it to be subsequently reactivated without stoppingthe broker instance.
Replication can be disabled by using an exchange configuration: One simple option is to specify a --replication-exchange rather than a --replication-queue on the primary and then bind in a 'normal' queue (recommendation would be to use a fanout exchange). To 'turn off' replication, you would then simply unbind the queue. Note however you would miss any further events. Note that a local broker or client can also be used to drain the queue for off-line recovery.
Alan, does the new ha-based replication currently allow this?
Not yet but it would be simple to add.
The latest release has a new queue replication mechanism based on the new HA module, the old asnync replication is gone. Please open a new BZ if there are any issues/missing features with the new mechanism.