/** * Stop this container. * @see #doStop * @see #doStop */ @Override public void stop() { try { doStop(); } catch (Exception ex) { throw convertRabbitAccessException(ex); } finally { synchronized (this.lifecycleMonitor) { this.running = false; this.lifecycleMonitor.notifyAll(); } } }
/** * Stop this container. * @see #doStop * @see #doStop */ @Override public void stop() { try { doStop(); } catch (Exception ex) { throw convertRabbitAccessException(ex); } finally { synchronized (this.lifecycleMonitor) { this.running = false; this.lifecycleMonitor.notifyAll(); } } }
/** * Stop the shared Connection, call {@link #doShutdown()}, and close this container. */ public void shutdown() { synchronized (this.lifecycleMonitor) { if (!isActive()) { logger.info("Shutdown ignored - container is not active already"); return; } this.active = false; this.lifecycleMonitor.notifyAll(); } logger.debug("Shutting down Rabbit listener container"); // Shut down the invokers. try { doShutdown(); } catch (Exception ex) { throw convertRabbitAccessException(ex); } finally { synchronized (this.lifecycleMonitor) { this.running = false; this.lifecycleMonitor.notifyAll(); } } }
/** * Stop the shared Connection, call {@link #doShutdown()}, and close this container. */ public void shutdown() { synchronized (this.lifecycleMonitor) { if (!isActive()) { logger.info("Shutdown ignored - container is not active already"); return; } this.active = false; this.lifecycleMonitor.notifyAll(); } logger.debug("Shutting down Rabbit listener container"); // Shut down the invokers. try { doShutdown(); } catch (Exception ex) { throw convertRabbitAccessException(ex); } finally { synchronized (this.lifecycleMonitor) { this.running = false; this.lifecycleMonitor.notifyAll(); } } }
/** * Start this container. * @see #doStart */ @Override public void start() { if (isRunning()) { return; } if (!this.initialized) { synchronized (this.lifecycleMonitor) { if (!this.initialized) { afterPropertiesSet(); } } } try { if (logger.isDebugEnabled()) { logger.debug("Starting Rabbit listener container."); } configureAdminIfNeeded(); checkMismatchedQueues(); doStart(); } catch (Exception ex) { throw convertRabbitAccessException(ex); } }
/** * Start this container. * @see #doStart */ @Override public void start() { if (isRunning()) { return; } if (!this.initialized) { synchronized (this.lifecycleMonitor) { if (!this.initialized) { afterPropertiesSet(); } } } try { if (logger.isDebugEnabled()) { logger.debug("Starting Rabbit listener container."); } configureAdminIfNeeded(); checkMismatchedQueues(); doStart(); } catch (Exception ex) { throw convertRabbitAccessException(ex); } }