예제 #1
0
 void connectionClosed(BrokerSideConnection con) {
   LOGGER.log(Level.SEVERE, "connectionClosed {0}", con);
   connections.remove(con.getConnectionId());
   if (con.getClientId() != null) {
     workersConnections.remove(
         con.getClientId()); // to be remove only if the connection is the current connection
   }
 }
예제 #2
0
 void connectionAccepted(BrokerSideConnection con) {
   LOGGER.log(Level.SEVERE, "connectionAccepted {0}", con);
   workersConnections.put(con.getClientId(), con);
 }