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, setSocketFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHost, getPort, getPropertySet, getSocketFactory, setSocketFactory
public void connect(java.lang.String hostName, int portNumber, PropertySet propSet, ExceptionInterceptor excInterceptor, Log log, int loginTimeout)
SocketConnection
connect
in interface SocketConnection
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 millisecondspublic void performTlsHandshake(ServerSession serverSession) throws SSLParamsException, FeatureNotAvailableException, java.io.IOException
performTlsHandshake
in interface SocketConnection
SSLParamsException
FeatureNotAvailableException
java.io.IOException
public java.nio.channels.AsynchronousSocketChannel getAsynchronousSocketChannel()
getAsynchronousSocketChannel
in interface SocketConnection
public final void forceClose()
AbstractSocketConnection
forceClose
in interface SocketConnection
forceClose
in class AbstractSocketConnection
public NetworkResources getNetworkResources()
getNetworkResources
in interface SocketConnection
getNetworkResources
in class AbstractSocketConnection
public java.net.Socket getMysqlSocket()
getMysqlSocket
in interface SocketConnection
getMysqlSocket
in class AbstractSocketConnection
public FullReadInputStream getMysqlInput()
getMysqlInput
in interface SocketConnection
getMysqlInput
in class AbstractSocketConnection
public void setMysqlInput(FullReadInputStream mysqlInput)
setMysqlInput
in interface SocketConnection
setMysqlInput
in class AbstractSocketConnection
public java.io.BufferedOutputStream getMysqlOutput()
getMysqlOutput
in interface SocketConnection
getMysqlOutput
in class AbstractSocketConnection
public boolean isSSLEstablished()
isSSLEstablished
in interface SocketConnection
isSSLEstablished
in class AbstractSocketConnection
public ExceptionInterceptor getExceptionInterceptor()
getExceptionInterceptor
in interface SocketConnection
getExceptionInterceptor
in class AbstractSocketConnection
public boolean isSynchronous()
isSynchronous
in interface SocketConnection