@ Override public void openConnection ( Map < String , String > properties ) throws JdbcServerException { if ( ! endpointConfiguration . isAutoConnect ( ) ) { List < OpenConnection . Property > propertyList = convertToPropertyList ( properties ) ; handleMessageAndCheckResponse ( JdbcMessage . openConnection ( propertyList ) ) ; } if ( connections . get ( ) == endpointConfiguration . getServerConfiguration ( ) . getMaxConnections ( ) ) { throw new JdbcServerException ( String . format ( "Maximum number of connections (%s) reached" , endpointConfiguration . getServerConfiguration ( ) . getMaxConnections ( ) ) ) ; } connections . incrementAndGet ( ) ; }
Opens the connection with the given properties