XNIO version 1.2.0.GA

org.jboss.xnio
Interface ChannelSource<T extends Channel>

Type Parameters:
T - the type of channel
All Known Subinterfaces:
CloseableChannelSource<T>, CloseableTcpChannelSource, TcpChannelSource

public interface ChannelSource<T extends Channel>

A channel source. Instances of this interface are used to create a channel and associate it with a handler. Example uses are to establish a TCP connection (as a client), open a serial port, etc.


Method Summary
 IoFuture<T> open(IoHandler<? super T> handler)
          Open a channel.
 

Method Detail

open

IoFuture<T> open(IoHandler<? super T> handler)
Open a channel.

Parameters:
handler - the handler for this channel
Returns:
the future result of this operation

XNIO version 1.2.0.GA

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