org.jboss.xnio
Interface ChannelDestination<A,T extends java.nio.channels.Channel>
- Type Parameters:
A - the address typeT - the channel type
- All Known Subinterfaces:
- CloseableTcpChannelDestination, TcpChannelDestination
public interface ChannelDestination<A,T extends java.nio.channels.Channel>
A channel destination. This is the inverse of ChannelSource; it is used to accept a single connection from a remote
peer.
- Since:
- 1.2
accept
FutureConnection<A,T> accept(IoHandler<? super T> handler)
- Accept a connection. The local address can be read at any time from the returned future connection.
- Parameters:
handler - the handler for the new connection
- Returns:
- the future connection