public synchronized void register ( String clientID ) throws InvalidClientIDException { if ( ! clientIDs . add ( clientID ) ) { log . error ( "Client ID already exists : " + clientID ) ; throw new InvalidClientIDException ( "Client ID already exists : " + clientID ) ; } log . debug ( "Registered clientID : " + clientID ) ; }
Register a new client ID