public interface SocketConnection
| Modifier and Type | Method and Description |
|---|---|
void |
connect(String host,
int port,
PropertySet propertySet,
ExceptionInterceptor exceptionInterceptor,
Log log,
int loginTimeout)
Connect to the MySQL server and setup a stream connection.
|
void |
forceClose() |
ExceptionInterceptor |
getExceptionInterceptor() |
String |
getHost()
Returns the host this IO is connected to
|
FullReadInputStream |
getMysqlInput() |
BufferedOutputStream |
getMysqlOutput() |
Socket |
getMysqlSocket() |
NetworkResources |
getNetworkResources() |
int |
getPort() |
PropertySet |
getPropertySet() |
SocketFactory |
getSocketFactory() |
boolean |
isSSLEstablished() |
void |
performTlsHandshake(ServerSession serverSession) |
default void |
performTlsHandshake(ServerSession serverSession,
Log log)
Start a TLS handshake
|
void |
setMysqlInput(FullReadInputStream mysqlInput) |
void |
setSocketFactory(SocketFactory socketFactory) |
void connect(String host, int port, PropertySet propertySet, ExceptionInterceptor exceptionInterceptor, Log log, int loginTimeout)
host - the hostname to connect toport - the port number that the server is listening onpropertySet - the PropertySet with required connection optionsexceptionInterceptor - exception interceptorlog - loggerloginTimeout - the driver login time limit in millisecondsvoid performTlsHandshake(ServerSession serverSession) throws SSLParamsException, FeatureNotAvailableException, IOException
default void performTlsHandshake(ServerSession serverSession, Log log) throws SSLParamsException, FeatureNotAvailableException, IOException
serverSession - server session state objectlog - loggerSSLParamsException - in case of failureFeatureNotAvailableException - in case of failureIOException - in case of failurevoid forceClose()
NetworkResources getNetworkResources()
String getHost()
int getPort()
Socket getMysqlSocket() throws IOException
IOExceptionFullReadInputStream getMysqlInput() throws IOException
IOExceptionvoid setMysqlInput(FullReadInputStream mysqlInput)
BufferedOutputStream getMysqlOutput() throws IOException
IOExceptionboolean isSSLEstablished()
SocketFactory getSocketFactory()
void setSocketFactory(SocketFactory socketFactory)
ExceptionInterceptor getExceptionInterceptor()
PropertySet getPropertySet()