|
|||||||||
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 java.nio.channels.Channel>
An acceptor. This is the inverse of Connector
; it is used to accept a single connection from a remote
peer.
Method Summary | |
---|---|
FutureConnection<A,T> |
acceptTo(A dest,
IoHandler<? super T> handler)
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 |
---|
FutureConnection<A,T> acceptTo(A dest, IoHandler<? super T> handler)
dest
- the destination addresshandler
- the handler for the new connection
ChannelDestination<A,T> createChannelDestination(A dest)
dest
- the destination address
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |