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
public abstract class BaseIoConnector extends BaseIoService implements IoConnector
A base implementation ofIoConnector
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseIoConnector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectFuture
connect(java.net.SocketAddress address, java.net.SocketAddress localAddress, IoHandler handler)
Connects to the specifiedaddress
.ConnectFuture
connect(java.net.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, setFilterChainBuilder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.mina.common.IoConnector
connect, connect
-
Methods inherited from interface org.apache.mina.common.IoService
addListener, getDefaultConfig, getFilterChain, getFilterChainBuilder, getManagedServiceAddresses, getManagedSessions, isManaged, removeListener, setFilterChainBuilder
-
-
-
-
Method Detail
-
connect
public ConnectFuture connect(java.net.SocketAddress address, IoHandler handler)
Description copied from interface:IoConnector
Connects to the specifiedaddress
. If communication starts successfully, events are fired to the specifiedhandler
.- Specified by:
connect
in interfaceIoConnector
- Returns:
ConnectFuture
that will tell the result of the connection attempt
-
connect
public ConnectFuture connect(java.net.SocketAddress address, java.net.SocketAddress localAddress, IoHandler handler)
Description copied from interface:IoConnector
Connects to the specifiedaddress
. If communication starts successfully, events are fired to the specifiedhandler
.- Specified by:
connect
in interfaceIoConnector
localAddress
- the local address the channel is bound to- Returns:
ConnectFuture
that will tell the result of the connection attempt
-
-