XNIO version 1.2.0.GA

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

Type Parameters:
A - the address type
T - the channel type
All Known Subinterfaces:
CloseableTcpChannelDestination, TcpChannelDestination

public interface ChannelDestination<A,T extends 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

XNIO version 1.2.0.GA

Copyright © 2008 JBoss, a division of Red Hat, Inc.