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

org.xnio.channels.BoundChannel Maven / Gradle / Ivy

There is a newer version: 3.8.16.Final
Show newest version

package org.xnio.channels;

import java.net.SocketAddress;
import org.xnio.ChannelListener;

/**
 * A channel that is bound to a local address.
 */
public interface BoundChannel extends CloseableChannel {
    /**
     * Get the local address that this channel is bound to.
     *
     * @return the local address
     */
    SocketAddress getLocalAddress();

    /**
     * Get the local address of a given type, or {@code null} if the address is not of that
     * type.
     *
     * @param type the address type class
     * @param  the address type
     * @return the local address, or {@code null} if unknown
     */
     A getLocalAddress(Class type);

    /** {@inheritDoc} */
    ChannelListener.Setter getCloseSetter();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy