public class SocksProxySocketFactory extends StandardSocketFactory
host, loginTimeoutCheckTimestamp, loginTimeoutCountdown, port, rawSocket, socketTimeoutBackup, sslSocket
Constructor and Description |
---|
SocksProxySocketFactory() |
Modifier and Type | Method and Description |
---|---|
<T extends java.io.Closeable> |
connect(java.lang.String hostname,
int portNumber,
PropertySet pset,
int loginTimeout)
Creates a new socket or channel using the given properties.
|
protected java.net.Socket |
createSocket(PropertySet props)
Create the raw socket.
|
afterHandshake, beforeHandshake, configureSocket, getRealTimeout, performTlsHandshake, performTlsHandshake, resetLoginTimeCountdown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isLocallyConnected, isLocallyConnected
protected java.net.Socket createSocket(PropertySet props)
StandardSocketFactory
createSocket
in class StandardSocketFactory
props
- properties available to affect behaviour during socket creation.public <T extends java.io.Closeable> T connect(java.lang.String hostname, int portNumber, PropertySet pset, int loginTimeout) throws java.io.IOException
SocketFactory
com.mysql.cj.protocol.StandardSocketFactory
Implementing classes
are responsible for handling synchronization of this method (if needed).connect
in interface SocketFactory
connect
in class StandardSocketFactory
T
- result typehostname
- 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.portNumber
- the port number to connect to (if required).pset
- properties passed to the driver via the URL and/or properties
instance.loginTimeout
- login timeout in millisecondsjava.io.IOException
- if an I/O error occurs