Interface PoolableProvider
- All Known Implementing Classes:
MysqlProvider
,PoolableConnection
public interface PoolableProvider
The pool of connection, usefully performance to big queries
-
Method Summary
Modifier and Type Method Description com.zaxxer.hikari.HikariDataSource
obtainDataSource(@NonNull UniversalCredential credentials, int maxConnections)
Gets the mysql connection
-
Method Details
-
obtainDataSource
com.zaxxer.hikari.HikariDataSource obtainDataSource(@NonNull @NonNull UniversalCredential credentials, int maxConnections) throws java.sql.SQLExceptionGets the mysql connection- Parameters:
credentials
- instance ofUniversalCredential
to login into mysqlmaxConnections
- passed in MysqlProvider constructor- Returns:
- returns an
HikariDataSource
object, that you can manage it - Throws:
java.sql.SQLException
- anything can break here, don't worry.
-