Package com.mysql.cj.jdbc.ha.ca
Interface ConnectionProvider
- All Known Implementing Classes:
BasicConnectionProvider
public interface ConnectionProvider
Implement this interface in order to handle physical connection creation process.
-
Method Summary
Modifier and Type Method Description ConnectionImplconnect(HostInfo host)Called once per connection that needs to be created.
-
Method Details
-
connect
Called once per connection that needs to be created.- Parameters:
host- Host information for the host of the desired connection.- Returns:
ConnectionImpl- Throws:
java.sql.SQLException
-