public class XAsyncSocketConnection extends AbstractSocketConnection implements SocketConnection
XProtocol.exceptionInterceptor, host, mysqlInput, mysqlOutput, mysqlSocket, port, propertySet, socketFactory| Constructor and Description |
|---|
XAsyncSocketConnection() |
| Modifier and Type | Method and 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 |
forceClose()
Forcibly closes the underlying socket to MySQL.
|
java.nio.channels.AsynchronousSocketChannel |
getAsynchronousSocketChannel() |
ExceptionInterceptor |
getExceptionInterceptor() |
FullReadInputStream |
getMysqlInput() |
java.io.BufferedOutputStream |
getMysqlOutput() |
java.net.Socket |
getMysqlSocket() |
NetworkResources |
getNetworkResources() |
boolean |
isSSLEstablished() |
boolean |
isSynchronous() |
void |
performTlsHandshake(ServerSession serverSession) |
void |
setMysqlInput(FullReadInputStream mysqlInput) |
createSocketFactory, getHost, getPort, getPropertySet, getSocketFactory, setSocketFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHost, getPort, getPropertySet, getSocketFactory, setSocketFactorypublic void connect(java.lang.String hostName,
int portNumber,
PropertySet propSet,
ExceptionInterceptor excInterceptor,
Log log,
int loginTimeout)
SocketConnectionconnect in interface SocketConnectionhostName - 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 millisecondspublic void performTlsHandshake(ServerSession serverSession) throws SSLParamsException, FeatureNotAvailableException, java.io.IOException
performTlsHandshake in interface SocketConnectionSSLParamsExceptionFeatureNotAvailableExceptionjava.io.IOExceptionpublic java.nio.channels.AsynchronousSocketChannel getAsynchronousSocketChannel()
getAsynchronousSocketChannel in interface SocketConnectionpublic final void forceClose()
AbstractSocketConnectionforceClose in interface SocketConnectionforceClose in class AbstractSocketConnectionpublic NetworkResources getNetworkResources()
getNetworkResources in interface SocketConnectiongetNetworkResources in class AbstractSocketConnectionpublic java.net.Socket getMysqlSocket()
getMysqlSocket in interface SocketConnectiongetMysqlSocket in class AbstractSocketConnectionpublic FullReadInputStream getMysqlInput()
getMysqlInput in interface SocketConnectiongetMysqlInput in class AbstractSocketConnectionpublic void setMysqlInput(FullReadInputStream mysqlInput)
setMysqlInput in interface SocketConnectionsetMysqlInput in class AbstractSocketConnectionpublic java.io.BufferedOutputStream getMysqlOutput()
getMysqlOutput in interface SocketConnectiongetMysqlOutput in class AbstractSocketConnectionpublic boolean isSSLEstablished()
isSSLEstablished in interface SocketConnectionisSSLEstablished in class AbstractSocketConnectionpublic ExceptionInterceptor getExceptionInterceptor()
getExceptionInterceptor in interface SocketConnectiongetExceptionInterceptor in class AbstractSocketConnectionpublic boolean isSynchronous()
isSynchronous in interface SocketConnection