public final class SerialConnector extends AbstractIoConnector
IoConnector
for serial communication transport.AbstractIoService.ServiceOperationFuture
disposalLock, sessionConfig
构造器和说明 |
---|
SerialConnector() |
SerialConnector(java.util.concurrent.Executor executor) |
限定符和类型 | 方法和说明 |
---|---|
protected ConnectFuture |
connect0(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Implement this method to perform the actual connect operation.
|
protected void |
dispose0()
Implement this method to release any acquired resources.
|
IoSessionConfig |
getSessionConfig() |
TransportMetadata |
getTransportMetadata() |
connect, connect, connect, connect, connect, connect, finishSessionInitialization0, getConnectTimeout, getConnectTimeoutCheckInterval, getConnectTimeoutMillis, getDefaultLocalAddress, getDefaultRemoteAddress, setConnectTimeout, setConnectTimeoutCheckInterval, setConnectTimeoutMillis, setDefaultLocalAddress, setDefaultRemoteAddress, toString
addListener, broadcast, dispose, dispose, executeWorker, executeWorker, getActivationTime, getFilterChain, getFilterChainBuilder, getHandler, getListeners, getManagedSessionCount, getManagedSessions, getScheduledWriteBytes, getScheduledWriteMessages, getSessionDataStructureFactory, getStatistics, initSession, isActive, isDisposed, isDisposing, removeListener, setFilterChainBuilder, setHandler, setSessionDataStructureFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, broadcast, dispose, dispose, getActivationTime, getFilterChain, getFilterChainBuilder, getHandler, getManagedSessionCount, getManagedSessions, getScheduledWriteBytes, getScheduledWriteMessages, getSessionDataStructureFactory, getStatistics, isActive, isDisposed, isDisposing, removeListener, setFilterChainBuilder, setHandler, setSessionDataStructureFactory
public SerialConnector()
public SerialConnector(java.util.concurrent.Executor executor)
protected ConnectFuture connect0(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
AbstractIoConnector
connect0
在类中 AbstractIoConnector
remoteAddress
- The remote address to connect fromlocalAddress
- null if no local address is specifiedsessionInitializer
- The IoSessionInitializer to use when the connection s successfulprotected void dispose0() throws java.lang.Exception
AbstractIoService
AbstractIoService.dispose()
.dispose0
在类中 AbstractIoService
java.lang.Exception
- If the dispose failedpublic TransportMetadata getTransportMetadata()
TransportMetadata
that this service runs on.public IoSessionConfig getSessionConfig()
IoSession
s
created by this service.