Top Fields Constructors Methods
com.mysql.cj.protocol.a

public Class NativeSocketConnection

extends AbstractSocketConnection
implements SocketConnection
Class Inheritance
All Implemented Interfaces
com.mysql.cj.protocol.SocketConnection
Imports
java.io.BufferedInputStream, .BufferedOutputStream, .IOException, .InputStream, com.mysql.cj.conf.PropertyKey, .PropertySet, com.mysql.cj.exceptions.ExceptionFactory, .ExceptionInterceptor, .FeatureNotAvailableException, .SSLParamsException, com.mysql.cj.log.Log, com.mysql.cj.protocol.AbstractSocketConnection, .FullReadInputStream, .PacketSentTimeHolder, .ReadAheadInputStream, .ServerSession, .SocketConnection

Field Summary

Inherited from com.mysql.cj.protocol.AbstractSocketConnection:
exceptionInterceptorhostmysqlInputmysqlOutputmysqlSocketportpropertySetsocketFactory

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
connect(String
the hostname to connect to
hostName
,
int
the port number that the server is listening on
portNumber
,
PropertySet
the PropertySet with required connection options
propSet
,
ExceptionInterceptor
exception interceptor
excInterceptor
,
Log
logger
log
,
int
the driver login time limit in milliseconds
loginTimeout
)

Implements com.mysql.cj.protocol.SocketConnection.connect.

Connect to the MySQL server and setup a stream connection.

public void
public void
performTlsHandshake(ServerSession
server session state object
serverSession
,
Log
logger
log
)

Overrides default com.mysql.cj.protocol.SocketConnection.performTlsHandshake.

Start a TLS handshake

Inherited from com.mysql.cj.protocol.AbstractSocketConnection:
createSocketFactoryforceClosegetExceptionInterceptorgetHostgetMysqlInputgetMysqlOutputgetMysqlSocketgetNetworkResourcesgetPortgetPropertySetgetSocketFactoryisSSLEstablishedsetMysqlInputsetSocketFactory

Constructor Detail

NativeSocketConnectionback to summary
public NativeSocketConnection()

Method Detail

connectback to summary
public void connect(String hostName, int portNumber, PropertySet propSet, ExceptionInterceptor excInterceptor, Log log, int loginTimeout)

Implements com.mysql.cj.protocol.SocketConnection.connect.

Doc from com.mysql.cj.protocol.SocketConnection.connect.

Connect to the MySQL server and setup a stream connection.

Parameters
hostName:String

the hostname to connect to

portNumber:int

the port number that the server is listening on

propSet:PropertySet

the PropertySet with required connection options

excInterceptor:ExceptionInterceptor

exception interceptor

log:Log

logger

loginTimeout:int

the driver login time limit in milliseconds

Annotations
@Override
performTlsHandshakeback to summary
public void performTlsHandshake(ServerSession serverSession) throws SSLParamsException, FeatureNotAvailableException, IOException

Implements com.mysql.cj.protocol.SocketConnection.performTlsHandshake.

Annotations
@Override
performTlsHandshakeback to summary
public void performTlsHandshake(ServerSession serverSession, Log log) throws SSLParamsException, FeatureNotAvailableException, IOException

Overrides default com.mysql.cj.protocol.SocketConnection.performTlsHandshake.

Doc from com.mysql.cj.protocol.SocketConnection.performTlsHandshake.

Start a TLS handshake

Parameters
serverSession:ServerSession

server session state object

log:Log

logger

Annotations
@Override
Exceptions
SSLParamsException:
in case of failure
FeatureNotAvailableException:
in case of failure
IOException:
in case of failure