SocketFactory
| Modifier and Type | Field and Description |
|---|---|
| pack-priv SocketFactory | socketFactory
References Deprecated
SocketFactory is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Access | Constructor and Description |
|---|---|
| public | SocketFactoryWrapper(SocketFactory legacyFactory)
References Deprecated
SocketFactory is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | afterHandshake()
Overrides com. Overrides default com. Called by the driver after completing the MySQL protocol handshake and reading the results of the authentication. |
| public void | beforeHandshake()
Overrides com. Overrides default com. Called by the driver before issuing the MySQL protocol handshake. |
| public <T extends Closeable> T | connect(String
the hostname passed in the URL. It will be a single
hostname, as the driver parses multi-hosts (for failover) and
calls this method for each host connection attempt. hostname, int the port number to connect to (if required). portNumber, PropertySet properties passed to the driver via the URL and/or properties
instance. pset, int login timeout in milliseconds loginTimeout)Overrides com. Implements com. Creates a new socket or channel using the given properties. |
| public <T extends Closeable> T | performTlsHandshake(SocketConnection
current SocketConnection socketConnection, ServerSession current ServerSession serverSession, Log logger log)Overrides com. Overrides default com. If required, called by the driver during MySQL protocol handshake to transform original socket to SSL socket and perform TLS handshake. |
| socketFactory | back to summary |
|---|---|
| pack-priv SocketFactory socketFactory
References Deprecated
See corresponding docs for further information.
| |
| SocketFactoryWrapper | back to summary |
|---|---|
| public SocketFactoryWrapper(SocketFactory legacyFactory)
References Deprecated
See corresponding docs for further information.
| |
| afterHandshake | back to summary |
|---|---|
| public void afterHandshake() throws IOException Overrides com. Overrides default com. Doc from com. Called by the driver after completing the MySQL protocol handshake and reading the results of the authentication.
| |
| beforeHandshake | back to summary |
|---|---|
| public void beforeHandshake() throws IOException Overrides com. Overrides default com. Doc from com. Called by the driver before issuing the MySQL protocol handshake.
| |
| connect | back to summary |
|---|---|
| public <T extends Closeable> T connect(String hostname, int portNumber, PropertySet pset, int loginTimeout) throws IOException Overrides com. Implements com. Doc from com. Creates a new socket or channel using the given properties. Properties are parsed by
the driver from the URL. All properties other than sensitive ones (user
and password) are passed to this method. The driver will instantiate the
socket factory with the class name given in the property
"socketFactory", where the standard is
| |
| performTlsHandshake | back to summary |
|---|---|
| public <T extends Closeable> T performTlsHandshake(SocketConnection socketConnection, ServerSession serverSession, Log log) throws IOException Overrides com. Overrides default com. Doc from com. If required, called by the driver during MySQL protocol handshake to transform original socket to SSL socket and perform TLS handshake.
| |