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.
|
SocketAddress |
getLocalAddress()
Get the local address that this channel is bound to.
|
<A extends SocketAddress> |
getLocalAddress(Class<A> type)
Get the local address of a given type, or
null if the address is not of that
type. |
SocketAddress |
getPeerAddress()
Get the peer address of this channel.
|
<A extends SocketAddress> |
getPeerAddress(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, supportsOption
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getIoThread, getWorker
getOption, setOption, supportsOption
public AssembledConnectedChannel(SuspendableReadChannel readChannel, SuspendableWriteChannel writeChannel)
ConnectedChannel
.readChannel
- the read channelwriteChannel
- the write channelpublic ChannelListener.Setter<? extends AssembledConnectedChannel> getCloseSetter()
CloseableChannel
getCloseSetter
in interface BoundChannel
getCloseSetter
in interface CloseableChannel
getCloseSetter
in interface ConnectedChannel
getCloseSetter
in class AssembledChannel
public SocketAddress getPeerAddress()
ConnectedChannel
getPeerAddress
in interface ConnectedChannel
public <A extends SocketAddress> A getPeerAddress(Class<A> type)
ConnectedChannel
null
if the address is not of that
type.getPeerAddress
in interface ConnectedChannel
type
- the address type classnull
if unknownpublic SocketAddress getLocalAddress()
BoundChannel
getLocalAddress
in interface BoundChannel
public <A extends SocketAddress> A getLocalAddress(Class<A> type)
BoundChannel
null
if the address is not of that
type.getLocalAddress
in interface BoundChannel
A
- the address typetype
- the address type classnull
if unknownCopyright © 2017 JBoss by Red Hat. All rights reserved.