|
XNIO API 2.1.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A - the address typeT - the channel typepublic interface Acceptor<A,T extends Channel>

An acceptor. This is the inverse of Connector; it is used to accept a single connection from a remote
peer.
| Method Summary | |
|---|---|
IoFuture<T> |
acceptTo(A dest,
ChannelListener<? super T> openListener,
ChannelListener<? super BoundChannel<A>> bindListener)
Accept a connection at a destination address. |
ChannelDestination<A,T> |
createChannelDestination(A dest)
Create a channel destination for this acceptor, which always uses a specific destination address. |
| Method Detail |
|---|
IoFuture<T> acceptTo(A dest,
ChannelListener<? super T> openListener,
ChannelListener<? super BoundChannel<A>> bindListener)
dest - the destination addressopenListener - the listener which will be notified when the channel is open, or null for nonebindListener - the listener which will be notified when the acceptor is bound, or null for none
ChannelDestination<A,T> createChannelDestination(A dest)
dest - the destination address
|
XNIO API 2.1.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||