public abstract class BaseIoConnector extends BaseIoService implements IoConnector
IoConnector
.限定符 | 构造器和说明 |
---|---|
protected |
BaseIoConnector() |
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 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
在接口中 IoConnector
localAddress
- the local address the channel is bound toConnectFuture
that will tell the result of the connection attempt