@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();
    }
@ 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
@param properties The properties to open the connection with
@throws JdbcServerException In case that the maximum connections have been reached