Package org.apache.mina.common.support
Class BaseIoConnector
java.lang.Object
org.apache.mina.common.support.BaseIoService
org.apache.mina.common.support.BaseIoConnector
- All Implemented Interfaces:
IoConnector,IoService
- Direct Known Subclasses:
DatagramConnectorDelegate,SocketConnector,VmPipeConnector
A base implementation of
IoConnector.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconnect(SocketAddress address, SocketAddress localAddress, IoHandler handler) Connects to the specifiedaddress.connect(SocketAddress address, IoHandler handler) Connects to the specifiedaddress.Methods inherited from class org.apache.mina.common.support.BaseIoService
addListener, getFilterChain, getFilterChainBuilder, getListeners, getManagedServiceAddresses, getManagedSessions, isManaged, removeListener, setFilterChainBuilderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.mina.common.IoConnector
connect, connectMethods inherited from interface org.apache.mina.common.IoService
addListener, getDefaultConfig, getFilterChain, getFilterChainBuilder, getManagedServiceAddresses, getManagedSessions, isManaged, removeListener, setFilterChainBuilder
-
Constructor Details
-
BaseIoConnector
protected BaseIoConnector()
-
-
Method Details
-
connect
Description copied from interface:IoConnectorConnects to the specifiedaddress. If communication starts successfully, events are fired to the specifiedhandler.- Specified by:
connectin interfaceIoConnector- Returns:
ConnectFuturethat will tell the result of the connection attempt
-
connect
Description copied from interface:IoConnectorConnects to the specifiedaddress. If communication starts successfully, events are fired to the specifiedhandler.- Specified by:
connectin interfaceIoConnectorlocalAddress- the local address the channel is bound to- Returns:
ConnectFuturethat will tell the result of the connection attempt
-