org.xnio.ChannelSource Maven / Gradle / Ivy
Go to download
This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including
all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and
JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up
with different versions on classes on the class path).
The newest version!
package org.xnio;
import 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.
*
* @param the type of channel
*/
public interface ChannelSource {
/**
* Open a channel.
*
* @param openListener the listener which will be notified when the channel is open
* @return the future result of this operation
*/
IoFuture open(ChannelListener super T> openListener);
}