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
tree: 3f7ca534dc0ab5124428932f50a2dbc26581799b
  1. .settings/
  2. src/
  3. .gitignore
  4. .mailmap
  5. BUILD
  6. LICENSE