@Override public void stop() { started.set(false); try { if (requestQueue != null) requestQueue.stop(); } catch (Exception ex) { if (debug) logger.debug("Unable to stop request queue", ex); } try { if (responseQueue != null) responseQueue.stop(); } catch (Exception ex) { if (debug) logger.debug("Unable to stop response queues", ex); } if (systemManager != null) { this.systemManager.serviceShutDown(); this.systemManager.unregisterService(this); } if (!(service instanceof EventManager)) { if (joinEventManager) { serviceContext().eventManager().leaveEventBus(this); } } eventManager.ifPresent(em -> em.leaveEventBus(BaseServiceQueueImpl.this)); }
@Override public void stop() { started.set(false); try { if (requestQueue != null) requestQueue.stop(); } catch (Exception ex) { if (debug) logger.debug("Unable to stop request queue", ex); } try { if (responseQueue != null) responseQueue.stop(); } catch (Exception ex) { if (debug) logger.debug("Unable to stop response queues", ex); } if (systemManager != null) { this.systemManager.serviceShutDown(); this.systemManager.unregisterService(this); } if (!(service instanceof EventManager)) { if (joinEventManager) { serviceContext().eventManager().leaveEventBus(this); } } eventManager.ifPresent(em -> em.leaveEventBus(BaseServiceQueueImpl.this)); }
@Override public void stop() { started.set(false); try { if (requestQueue != null) requestQueue.stop(); } catch (Exception ex) { if (debug) logger.debug("Unable to stop request queue", ex); } try { if (responseQueue != null) responseQueue.stop(); } catch (Exception ex) { if (debug) logger.debug("Unable to stop response queues", ex); } if (systemManager != null) { this.systemManager.serviceShutDown(); this.systemManager.unregisterService(this); } if (!(service instanceof EventManager)) { if (joinEventManager) { serviceContext().eventManager().leaveEventBus(this); } } eventManager.ifPresent(em -> em.leaveEventBus(BaseServiceQueueImpl.this)); }