XNIO API 2.0.0.GA

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

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

public interface ConnectedChannel<A>
extends BoundChannel<A>

A channel that has a local and peer endpoint address.


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

Method Detail

getPeerAddress

A getPeerAddress()
Get the peer address of this channel.

Returns:
the peer address

getCloseSetter

ChannelListener.Setter<? extends ConnectedChannel<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 BoundChannel<A>
Specified by:
getCloseSetter in interface CloseableChannel
Returns:
the setter

XNIO API 2.0.0.GA

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