Package com.mysql.cj.jdbc.ha.ca
Class BasicConnectionProvider
java.lang.Object
com.mysql.cj.jdbc.ha.ca.BasicConnectionProvider
- All Implemented Interfaces:
ConnectionProvider
public class BasicConnectionProvider extends java.lang.Object implements ConnectionProvider
This class is a basic implementation of ConnectionProvider interface. It creates and returns an
instance of ConnectionImpl.
-
Constructor Summary
Constructors Constructor Description BasicConnectionProvider() -
Method Summary
Modifier and Type Method Description ConnectionImplconnect(HostInfo host)Called once per connection that needs to be created.
-
Constructor Details
-
BasicConnectionProvider
public BasicConnectionProvider()
-
-
Method Details
-
connect
Called once per connection that needs to be created.- Specified by:
connectin interfaceConnectionProvider- Parameters:
host- Host details to connect to- Returns:
ConnectionImpl- Throws:
java.sql.SQLException
-