|
XNIO version 1.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 ConnectedChannel<A>>

A connector. Instances of this interface are used to connect to arbitrary peers.
| Method Summary | |
|---|---|
IoFuture<T> |
connectTo(A src,
A dest,
IoHandler<? super T> handler)
Establish a connection to a destination using an explicit source. |
IoFuture<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 |
|---|
IoFuture<T> connectTo(A dest,
IoHandler<? super T> handler)
dest - the destination addresshandler - the handler for this connection
IoFuture<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
|
XNIO version 1.0.0.GA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||