public final class SerialConnector extends AbstractIoConnector
IoConnector for serial communication transport.AbstractIoService.ServiceOperationFuturedisposalLock, sessionConfig| Constructor and Description |
|---|
SerialConnector() |
SerialConnector(Executor executor) |
| 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()
Returns the default configuration of the new
IoSessions
created by this service. |
TransportMetadata |
getTransportMetadata()
Returns the
TransportMetadata that this service runs on. |
connect, connect, connect, connect, connect, connect, finishSessionInitialization0, getConnectTimeout, getConnectTimeoutCheckInterval, getConnectTimeoutMillis, getDefaultRemoteAddress, setConnectTimeout, setConnectTimeoutCheckInterval, setConnectTimeoutMillis, setDefaultRemoteAddress, toStringaddListener, broadcast, dispose, dispose, executeWorker, executeWorker, getActivationTime, getFilterChain, getFilterChainBuilder, getHandler, getListeners, getManagedSessionCount, getManagedSessions, getScheduledWriteBytes, getScheduledWriteMessages, getSessionDataStructureFactory, getStatistics, initSession, isActive, isDisposed, isDisposing, removeListener, setFilterChainBuilder, setHandler, setSessionDataStructureFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, broadcast, dispose, dispose, getActivationTime, getFilterChain, getFilterChainBuilder, getHandler, getManagedSessionCount, getManagedSessions, getScheduledWriteBytes, getScheduledWriteMessages, getSessionDataStructureFactory, getStatistics, isActive, isDisposed, isDisposing, removeListener, setFilterChainBuilder, setHandler, setSessionDataStructureFactorypublic SerialConnector()
public SerialConnector(Executor executor)
protected ConnectFuture connect0(SocketAddress remoteAddress, SocketAddress localAddress, IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
AbstractIoConnectorconnect0 in class AbstractIoConnectorlocalAddress - null if no local address is specifiedprotected void dispose0()
throws Exception
AbstractIoServiceAbstractIoService.dispose().dispose0 in class AbstractIoServiceExceptionpublic TransportMetadata getTransportMetadata()
IoServiceTransportMetadata that this service runs on.public IoSessionConfig getSessionConfig()
IoServiceIoSessions
created by this service.Copyright © 2004-2012 Apache MINA Project. All Rights Reserved.