private void resetConnection() { _CounterGroup.incrementAndGet(RabbitMQConstants.COUNTER_EXCEPTION); if (log.isWarnEnabled()) log.warn(this.getName() + " - Closing RabbitMQ connection and channel due to exception."); RabbitMQUtil.close(_Connection, _Channel); _Connection = null; _Channel = null; }
@Override public synchronized void stop() { RabbitMQUtil.close(_Connection, _Channel); super.stop(); }