Package com.mysql.cj.protocol.a
Class NativeSocketConnection
java.lang.Object
com.mysql.cj.protocol.AbstractSocketConnection
com.mysql.cj.protocol.a.NativeSocketConnection
- All Implemented Interfaces:
SocketConnection
public class NativeSocketConnection extends AbstractSocketConnection implements SocketConnection
-
Field Summary
Fields inherited from class com.mysql.cj.protocol.AbstractSocketConnection
exceptionInterceptor, host, mysqlInput, mysqlOutput, mysqlSocket, port, propertySet, socketFactory
-
Constructor Summary
Constructors Constructor Description NativeSocketConnection()
-
Method Summary
Modifier and Type Method Description void
connect(java.lang.String hostName, int portNumber, PropertySet propSet, ExceptionInterceptor excInterceptor, Log log, int loginTimeout)
Connect to the MySQL server and setup a stream connection.void
performTlsHandshake(ServerSession serverSession)
Methods inherited from class com.mysql.cj.protocol.AbstractSocketConnection
createSocketFactory, forceClose, getExceptionInterceptor, getHost, getMysqlInput, getMysqlOutput, getMysqlSocket, getNetworkResources, getPort, getPropertySet, getSocketFactory, isSSLEstablished, setMysqlInput, setSocketFactory
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mysql.cj.protocol.SocketConnection
forceClose, getExceptionInterceptor, getHost, getMysqlInput, getMysqlOutput, getMysqlSocket, getNetworkResources, getPort, getPropertySet, getSocketFactory, isSSLEstablished, setMysqlInput, setSocketFactory
-
Constructor Details
-
NativeSocketConnection
public NativeSocketConnection()
-
-
Method Details
-
connect
public void connect(java.lang.String hostName, int portNumber, PropertySet propSet, ExceptionInterceptor excInterceptor, Log log, int loginTimeout)Description copied from interface:SocketConnection
Connect to the MySQL server and setup a stream connection.- Specified by:
connect
in interfaceSocketConnection
- Parameters:
hostName
- the hostname to connect toportNumber
- the port number that the server is listening onpropSet
- the PropertySet with required connection optionsexcInterceptor
- exception interceptorlog
- loggerloginTimeout
- the driver login time limit in milliseconds
-
performTlsHandshake
public void performTlsHandshake(ServerSession serverSession) throws SSLParamsException, FeatureNotAvailableException, java.io.IOException- Specified by:
performTlsHandshake
in interfaceSocketConnection
- Throws:
SSLParamsException
FeatureNotAvailableException
java.io.IOException
-