Top Description Methods
org.xnio

public Interface ChannelSource<T extends Channel>

Known Direct Implementers
org.xnio.IoUtils.RetryingChannelSource
Type Parameters
<T>
the type of channel
Imports
java.nio.channels.Channel

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

Method Summary

Modifier and TypeMethod and Description
public IoFuture<T>

Returns:

the future result of this operation
open
(ChannelListener<? super T>
the listener which will be notified when the channel is open
openListener
)

Open a channel.

Method Detail

openback to summary
public IoFuture<T> open(ChannelListener<? super T> openListener)

Open a channel.

Parameters
openListener:ChannelListener<? super T>

the listener which will be notified when the channel is open

Returns:IoFuture<T>

the future result of this operation