@Override public synchronized Connection remove(final InetSocketAddress peerAddress) { Connection removedConnection = connections.remove(peerAddress); removeSessionFromCache(removedConnection); return removedConnection; }
@Override public synchronized Connection remove(final InetSocketAddress peerAddress) { Connection removedConnection = connections.remove(peerAddress); removeSessionFromCache(removedConnection); return removedConnection; }