public int count ( String key ) { ConcurrentMap < WebSocketConnection , WebSocketConnection > bag = registry . get ( key ) ; return null == bag ? 0 : bag . size ( ) ; }
Returns the connection count by key specified in this registry