public abstract class BaseIoConnector extends BaseIoService implements IoConnector
IoConnector
.Modifier | Constructor and Description |
---|---|
protected |
BaseIoConnector() |
Modifier and Type | Method and Description |
---|---|
ConnectFuture |
connect(java.net.SocketAddress address,
IoHandler handler)
Connects to the specified
address . |
ConnectFuture |
connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
IoHandler handler)
Connects to the specified
address . |
addListener, getFilterChain, getFilterChainBuilder, getListeners, getManagedServiceAddresses, getManagedSessions, isManaged, removeListener, setFilterChainBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connect, connect
addListener, getDefaultConfig, getFilterChain, getFilterChainBuilder, getManagedServiceAddresses, getManagedSessions, isManaged, removeListener, setFilterChainBuilder
public ConnectFuture connect(java.net.SocketAddress address, IoHandler handler)
IoConnector
address
. If communication starts
successfully, events are fired to the specified
handler
.connect
in interface IoConnector
ConnectFuture
that will tell the result of the connection attemptpublic ConnectFuture connect(java.net.SocketAddress address, java.net.SocketAddress localAddress, IoHandler handler)
IoConnector
address
. If communication starts
successfully, events are fired to the specified
handler
.connect
in interface IoConnector
localAddress
- the local address the channel is bound toConnectFuture
that will tell the result of the connection attempt