public final class SerialConnector extends AbstractIoConnector
IoConnector
for serial communication transport.AbstractIoService.ServiceOperationFuture
disposalLock, LOGGER, sessionConfig
Constructor and Description |
---|
SerialConnector()
Creates a new SerialConnector instance
|
SerialConnector(Executor executor)
Creates a new SerialConnector instance
|
Modifier and Type | Method and Description |
---|---|
protected ConnectFuture |
connect0(SocketAddress remoteAddress,
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(Executor executor)
executor
- The Executor to use internallyprotected ConnectFuture connect0(SocketAddress remoteAddress, SocketAddress localAddress, IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
AbstractIoConnector
connect0
in class 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 Exception
AbstractIoService.dispose()
.dispose0
in class AbstractIoService
Exception
- If the dispose failedpublic TransportMetadata getTransportMetadata()
TransportMetadata
that this service runs on.public IoSessionConfig getSessionConfig()
IoSession
s
created by this service.Copyright © 2004–2018 Apache MINA Project. All rights reserved.