public void signIn(String key, Collection<WebSocketConnection> connections) {
        if (connections.isEmpty()) {
            return;
        }
        Map<WebSocketConnection, WebSocketConnection> newMap = new HashMap<>();
        for (WebSocketConnection conn : connections) {
            newMap.put(conn, conn);
        }
        ConcurrentMap<WebSocketConnection, WebSocketConnection> bag = ensureConnectionList(key);
        bag.putAll(newMap);
    }
public void signIn ( String key , Collection < WebSocketConnection > connections ) { if ( connections . isEmpty ( ) ) { return ; } Map < WebSocketConnection , WebSocketConnection > newMap = new HashMap < > ( ) ; for ( WebSocketConnection conn : connections ) { newMap . put ( conn , conn ) ; } ConcurrentMap < WebSocketConnection , WebSocketConnection > bag = ensureConnectionList ( key ) ; bag . putAll ( newMap ) ; }
Sign in a group of connections to the registry by key

@param key
the key
@param connections
a collection of websocket connections