@Override protected void doStop(ServiceStopper stopper) throws Exception { if (taskRunnerFactory != null) { taskRunnerFactory.shutdownNow(); taskRunnerFactory = null; } }
@Override protected void doStop(ServiceStopper stopper) throws Exception { initialized.countDown(); if (taskRunnerFactory != null) { taskRunnerFactory.shutdownNow(); taskRunnerFactory = null; } if (channel != null) { channel.close(); channel = null; } super.doStop(stopper); }
Thread.currentThread().interrupt(); } finally { taskRunnerFactory.shutdownNow();
@Override public void stop() throws Exception { try { synchronized (reconnectMutex) { ServiceStopper ss = new ServiceStopper(); if (!started) { return; } started = false; disposed = true; connected = false; for (Iterator<FanoutTransportHandler> iter = transports.iterator(); iter.hasNext();) { FanoutTransportHandler th = iter.next(); if (th.transport != null) { ss.stop(th.transport); } } LOG.debug("Stopped: " + this); ss.throwFirstException(); } } finally { reconnectTask.shutdown(); reconnectTaskFactory.shutdownNow(); } }
reconnectTaskFactory.shutdownNow();
taskRunnerFactory.shutdownNow(); taskRunnerFactory = null;
@Override protected void doStop(ServiceStopper stopper) throws Exception { if (taskRunnerFactory != null) { taskRunnerFactory.shutdownNow(); taskRunnerFactory = null; } }
@Override protected void doStop(ServiceStopper stopper) throws Exception { if (taskRunnerFactory != null) { taskRunnerFactory.shutdownNow(); taskRunnerFactory = null; } }
@Override protected void doStop(ServiceStopper stopper) throws Exception { if (taskRunnerFactory != null) { taskRunnerFactory.shutdownNow(); taskRunnerFactory = null; } }
@Override protected void doStop(ServiceStopper stopper) throws Exception { initialized.countDown(); if (taskRunnerFactory != null) { taskRunnerFactory.shutdownNow(); taskRunnerFactory = null; } if (channel != null) { channel.close(); channel = null; } super.doStop(stopper); }
@Override protected void doStop(ServiceStopper stopper) throws Exception { initialized.countDown(); if (taskRunnerFactory != null) { taskRunnerFactory.shutdownNow(); taskRunnerFactory = null; } if (channel != null) { channel.close(); channel = null; } super.doStop(stopper); }
@Override protected void doStop(ServiceStopper stopper) throws Exception { initialized.countDown(); if (taskRunnerFactory != null) { taskRunnerFactory.shutdownNow(); taskRunnerFactory = null; } if (channel != null) { channel.close(); channel = null; } super.doStop(stopper); }
Thread.currentThread().interrupt(); } finally { taskRunnerFactory.shutdownNow();
@Override public void stop() throws Exception { try { synchronized (reconnectMutex) { ServiceStopper ss = new ServiceStopper(); if (!started) { return; } started = false; disposed = true; connected = false; for (Iterator<FanoutTransportHandler> iter = transports.iterator(); iter.hasNext();) { FanoutTransportHandler th = iter.next(); if (th.transport != null) { ss.stop(th.transport); } } LOG.debug("Stopped: " + this); ss.throwFirstException(); } } finally { reconnectTask.shutdown(); reconnectTaskFactory.shutdownNow(); } }
@Override public void stop() throws Exception { try { synchronized (reconnectMutex) { ServiceStopper ss = new ServiceStopper(); if (!started) { return; } started = false; disposed = true; connected = false; for (Iterator<FanoutTransportHandler> iter = transports.iterator(); iter.hasNext();) { FanoutTransportHandler th = iter.next(); if (th.transport != null) { ss.stop(th.transport); } } LOG.debug("Stopped: " + this); ss.throwFirstException(); } } finally { reconnectTask.shutdown(); reconnectTaskFactory.shutdownNow(); } }
@Override public void stop() throws Exception { try { synchronized (reconnectMutex) { ServiceStopper ss = new ServiceStopper(); if (!started) { return; } started = false; disposed = true; connected = false; for (Iterator<FanoutTransportHandler> iter = transports.iterator(); iter.hasNext();) { FanoutTransportHandler th = iter.next(); if (th.transport != null) { ss.stop(th.transport); } } LOG.debug("Stopped: " + this); ss.throwFirstException(); } } finally { reconnectTask.shutdown(); reconnectTaskFactory.shutdownNow(); } }
reconnectTaskFactory.shutdownNow();
reconnectTaskFactory.shutdownNow();
taskRunnerFactory.shutdownNow(); taskRunnerFactory = null;
taskRunnerFactory.shutdownNow(); taskRunnerFactory = null;