
public interface ConnectedChannel extends BoundChannel
| Modifier and Type | Method and Description |
|---|---|
ChannelListener.Setter<? extends ConnectedChannel> |
getCloseSetter()
Get the setter which can be used to change the close listener for this channel.
|
java.net.SocketAddress |
getPeerAddress()
Get the peer address of this channel.
|
<A extends java.net.SocketAddress> |
getPeerAddress(java.lang.Class<A> type)
Get the peer address of a given type, or
null if the address is not of that
type. |
getLocalAddress, getLocalAddressclose, getWorkergetOption, setOption, supportsOptionjava.net.SocketAddress getPeerAddress()
<A extends java.net.SocketAddress> A getPeerAddress(java.lang.Class<A> type)
null if the address is not of that
type.type - the address type classnull if unknownChannelListener.Setter<? extends ConnectedChannel> getCloseSetter()
getCloseSetter in interface BoundChannelgetCloseSetter in interface CloseableChannelCopyright © 2010 JBoss, a division of Red Hat, Inc.