Bind ReplicationQueue as a LifecycleListener
The ReplicationQueue already implemented LifecycleListener interface but
it wasn't bound as a LifecycleListener. Instead, the OnStartStop
(which is also a LifecycleListener) explicitly called
ReplicationQueue.start() from its start() method and
ReplicationQueue.stop() from its stop() method.
Bind ReplicationQueue as a LifecycleListener and rely on Gerrit's
LifecycleManager to invoked its stop/stop methods.
Change-Id: I9f21009a71860fcafc2131aed6a2ba9cf9585163
2 files changed