All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xnio.ChannelSource Maven / Gradle / Ivy

There is a newer version: 62
Show 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 openListener);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy