XNIO API 2.0.0.GA

org.jboss.xnio.channels
Interface BoundChannel<A>

Type Parameters:
A - the type of address associated with this channel
All Superinterfaces:
java.nio.channels.Channel, java.io.Closeable, CloseableChannel, Configurable
All Known Subinterfaces:
ConnectedChannel<A>, ConnectedStreamChannel<A>, DatagramChannel<A>, LocalChannel, MultipointDatagramChannel<A>, SslTcpChannel, TcpChannel, UdpChannel

public interface BoundChannel<A>
extends CloseableChannel

A channel that is bound to a local address.


Method Summary
 ChannelListener.Setter<? extends BoundChannel<A>> getCloseSetter()
          Get the setter which can be used to change the close handler for this channel.
 A getLocalAddress()
          Get the local address that this channel is bound to.
 
Methods inherited from interface java.nio.channels.Channel
close, isOpen
 
Methods inherited from interface org.jboss.xnio.channels.Configurable
getOption, setOption, supportsOption
 

Method Detail

getLocalAddress

A getLocalAddress()
Get the local address that this channel is bound to.

Returns:
the local address

getCloseSetter

ChannelListener.Setter<? extends BoundChannel<A>> getCloseSetter()
Get the setter which can be used to change the close handler for this channel. If the channel is already closed, then the handler will not be called.

Specified by:
getCloseSetter in interface CloseableChannel
Returns:
the setter

XNIO API 2.0.0.GA

Copyright © 2009 JBoss, a division of Red Hat, Inc.