|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A - the address typeT - the type of channelpublic interface Connector<A,T extends java.nio.channels.Channel>
A connector. Instances of this interface are used to connect to arbitrary peers.
| Method Summary | |
|---|---|
FutureConnection<A,T> |
connectTo(A src,
A dest,
IoHandler<? super T> handler)
Establish a connection to a destination using an explicit source. |
FutureConnection<A,T> |
connectTo(A dest,
IoHandler<? super T> handler)
Establish a connection to a destination. |
ChannelSource<T> |
createChannelSource(A dest)
Create a client that always connects to the given destination. |
ChannelSource<T> |
createChannelSource(A src,
A dest)
Create a client that always connects to the given destination using an explicit source. |
| Method Detail |
|---|
FutureConnection<A,T> connectTo(A dest,
IoHandler<? super T> handler)
dest - the destination addresshandler - the handler for this connection
FutureConnection<A,T> connectTo(A src,
A dest,
IoHandler<? super T> handler)
src - the source addressdest - the destination addresshandler - the handler for this connection
ChannelSource<T> createChannelSource(A dest)
dest - the destination to connect to
ChannelSource<T> createChannelSource(A src,
A dest)
src - the source to connect fromdest - the destination to connect to
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||