XNIO API 2.0.0.GA

org.jboss.xnio
Interface ChannelSource<T extends java.nio.channels.Channel>

Type Parameters:
T - the type of channel
All Known Subinterfaces:
TcpChannelSource

public interface ChannelSource<T extends java.nio.channels.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<? extends T> open(ChannelListener<? super T> openListener)
          Open a channel.
 

Method Detail

open

IoFuture<? extends T> open(ChannelListener<? super T> openListener)
Open a channel.

Parameters:
openListener - the handler which will be notified when the channel is open
Returns:
the future result of this operation

XNIO API 2.0.0.GA

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