9.4.2 Method PooledMySQLConnection.close()

Syntax:

cnx.close()

Returns a pooled connection to its connection pool.

For a pooled connection, close() does not actually close it but returns it to the pool and makes it available for subsequent connection requests.

If the pool configuration parameters are changed, a returned connection is closed and reopened with the new configuration before being returned from the pool again in response to a connection request.