org.xnio.channels.BoundChannel 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.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 extends BoundChannel> getCloseSetter();
}