public class AssembledConnectedChannel extends AssembledChannel implements ConnectedChannel
EMPTY| Constructor and Description |
|---|
AssembledConnectedChannel(SuspendableReadChannel readChannel,
SuspendableWriteChannel writeChannel)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ChannelListener.Setter<? extends AssembledConnectedChannel> |
getCloseSetter()
Get the setter which can be used to change the close listener for this channel.
|
java.net.SocketAddress |
getLocalAddress()
Get the local address that this channel is bound to.
|
<A extends java.net.SocketAddress> |
getLocalAddress(java.lang.Class<A> type)
Get the local address of a given type, or
null if the address is not of that
type. |
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. |
close, getIoThread, getOption, getWorker, isOpen, setOption, supportsOptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getIoThread, getWorkergetOption, setOption, supportsOptionpublic AssembledConnectedChannel(SuspendableReadChannel readChannel, SuspendableWriteChannel writeChannel)
ConnectedChannel.readChannel - the read channelwriteChannel - the write channelpublic ChannelListener.Setter<? extends AssembledConnectedChannel> getCloseSetter()
CloseableChannelgetCloseSetter in interface BoundChannelgetCloseSetter in interface CloseableChannelgetCloseSetter in interface ConnectedChannelgetCloseSetter in class AssembledChannelpublic java.net.SocketAddress getPeerAddress()
ConnectedChannelgetPeerAddress in interface ConnectedChannelpublic <A extends java.net.SocketAddress> A getPeerAddress(java.lang.Class<A> type)
ConnectedChannelnull if the address is not of that
type.getPeerAddress in interface ConnectedChanneltype - the address type classnull if unknownpublic java.net.SocketAddress getLocalAddress()
BoundChannelgetLocalAddress in interface BoundChannelpublic <A extends java.net.SocketAddress> A getLocalAddress(java.lang.Class<A> type)
BoundChannelnull if the address is not of that
type.getLocalAddress in interface BoundChannelA - the address typetype - the address type classnull if unknownCopyright © 2016 JBoss, a division of Red Hat, Inc.