use of org.apache.qpid.server.protocol.v0_10.transport.ConnectionException in project qpid-broker-j by apache.
the class ServerConnection method closed.
public void closed() {
try {
performDeleteTasks();
if (state == OPEN) {
exception(new ConnectionException("connection aborted"));
}
LOGGER.debug("connection closed: {}", this);
synchronized (lock) {
List<ServerSession> values = new ArrayList<ServerSession>(channels.values());
for (ServerSession ssn : values) {
ssn.closed();
}
try {
sender.close();
} catch (Exception e) {
// ignore.
}
sender = null;
setState(CLOSED);
}
} finally {
NamedAddressSpace addressSpace = getAddressSpace();
if (addressSpace != null) {
addressSpace.deregisterConnection(_amqpConnection);
}
}
}
Aggregations