|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.xnio.nio.NioTcpConnector
public final class NioTcpConnector
| Method Summary | |
|---|---|
void |
close()
|
FutureConnection<java.net.SocketAddress,TcpChannel> |
connectTo(java.net.SocketAddress dest,
IoHandler<? super TcpChannel> handler)
Establish a connection to a TCP server. |
FutureConnection<java.net.SocketAddress,TcpChannel> |
connectTo(java.net.SocketAddress src,
java.net.SocketAddress dest,
IoHandler<? super TcpChannel> handler)
Establish a connection to a TCP server. |
TcpChannelSource |
createChannelSource(java.net.SocketAddress dest)
Create a client that always connects to the given TCP server. |
TcpChannelSource |
createChannelSource(java.net.SocketAddress src,
java.net.SocketAddress dest)
Create a client that always connects to the given TCP server from the given source address. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public FutureConnection<java.net.SocketAddress,TcpChannel> connectTo(java.net.SocketAddress dest,
IoHandler<? super TcpChannel> handler)
TcpConnector
connectTo in interface Connector<java.net.SocketAddress,TcpChannel>connectTo in interface TcpConnectordest - the destination addresshandler - the handler for this connection
public FutureConnection<java.net.SocketAddress,TcpChannel> connectTo(java.net.SocketAddress src,
java.net.SocketAddress dest,
IoHandler<? super TcpChannel> handler)
TcpConnector
connectTo in interface Connector<java.net.SocketAddress,TcpChannel>connectTo in interface TcpConnectorsrc - the source addressdest - the destination addresshandler - the handler for this connection
public TcpChannelSource createChannelSource(java.net.SocketAddress dest)
TcpConnector
createChannelSource in interface Connector<java.net.SocketAddress,TcpChannel>createChannelSource in interface TcpConnectordest - the destination to connect to
public TcpChannelSource createChannelSource(java.net.SocketAddress src,
java.net.SocketAddress dest)
TcpConnector
createChannelSource in interface Connector<java.net.SocketAddress,TcpChannel>createChannelSource in interface TcpConnectorsrc - the source to connect fromdest - the destination to connect to
public void close()
throws java.io.IOException
close in interface java.io.Closeablejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||