org.jboss.xnio
Interface ChannelDestination<A,T extends java.nio.channels.Channel>

Type Parameters:
A - the address type
T - 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

Method Summary
 FutureConnection<A,T> accept(IoHandler<? super T> handler)
          Accept a connection.
 

Method Detail

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