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.SQLException
      Gets the mysql connection
      Parameters:
      credentials - instance of UniversalCredential to login into mysql
      maxConnections - 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.