|
XNIO API 2.0.0.GA | |||||||||
| 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 from arbitrary bound source addresses.
| Method Summary | |
|---|---|
IoFuture<T> |
connectTo(A dest,
ChannelListener<? super T> openListener,
ChannelListener<? super BoundChannel<A>> bindListener)
Establish a connection to a destination. |
ChannelSource<T> |
createChannelSource(A dest)
Create a client that always connects to the given destination. |
| Method Detail |
|---|
IoFuture<T> connectTo(A dest,
ChannelListener<? super T> openListener,
ChannelListener<? super BoundChannel<A>> bindListener)
dest - the destination addressopenListener - the handler which will be notified when the channel is open, or null for nonebindListener - the handler which will be notified when the channel is bound, or null for none
ChannelSource<T> createChannelSource(A dest)
dest - the destination to connect to
|
XNIO API 2.0.0.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||