SocketFactory instead.@Deprecated
public interface SocketFactory
| Modifier and Type | Method and Description |
|---|---|
java.net.Socket |
afterHandshake()
Deprecated.
Called by the driver after issuing the MySQL protocol handshake and
reading the results of the handshake.
|
java.net.Socket |
beforeHandshake()
Deprecated.
Called by the driver before issuing the MySQL protocol handshake.
|
java.net.Socket |
connect(java.lang.String host,
int portNumber,
java.util.Properties props)
Deprecated.
Creates a new socket using the given properties.
|
java.net.Socket afterHandshake()
throws java.net.SocketException,
java.io.IOException
java.net.SocketException - if a socket error occursjava.io.IOException - if an I/O error occursjava.net.Socket beforeHandshake()
throws java.net.SocketException,
java.io.IOException
java.net.SocketException - if a socket error occursjava.io.IOException - if an I/O error occursjava.net.Socket connect(java.lang.String host,
int portNumber,
java.util.Properties props)
throws java.net.SocketException,
java.io.IOException
com.mysql.jdbc.StandardSocketFactory Implementing classes
are responsible for handling synchronization of this method (if needed).host - the hostname passed in the JDBC URL. It will be a single
hostname, as the driver parses multi-hosts (for failover) and
calls this method for each host connection attempt.portNumber - the port number to connect to (if required).props - properties passed to the driver via the URL and/or properties
instance.java.net.SocketException - if a socket error occursjava.io.IOException - if an I/O error occurs