public void onClose(Connection connection) { for (ConnectionListener delegate : this.delegates) { delegate.onClose(connection); } }
public void onClose(Connection connection) { for (ConnectionListener delegate : this.delegates) { delegate.onClose(connection); } }
private void notifyCloseIfNecessary() { if (!(this.closeNotified.getAndSet(true))) { getConnectionListener().onClose(this); } }
private void notifyCloseIfNecessary() { if (!(this.closeNotified.getAndSet(true))) { getConnectionListener().onClose(this); } }
public void destroy() { if (this.target != null) { getConnectionListener().onClose(target); RabbitUtils.closeConnection(this.target); } this.target = null; }