public class AssembledConnectedMessageChannel extends AssembledMessageChannel implements ConnectedMessageChannel
EMPTY
Constructor and Description |
---|
AssembledConnectedMessageChannel(ConnectedChannel connection,
ReadableMessageChannel readable,
WritableMessageChannel writable)
Construct a new instance.
|
AssembledConnectedMessageChannel(ReadableMessageChannel readable,
WritableMessageChannel writable)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
ChannelListener.Setter<? extends AssembledConnectedMessageChannel> |
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. |
ChannelListener.Setter<? extends AssembledConnectedMessageChannel> |
getReadSetter()
Get the setter which can be used to change the read listener for this channel.
|
ChannelListener.Setter<? extends AssembledConnectedMessageChannel> |
getWriteSetter()
Get the setter which can be used to change the write listener for this channel.
|
awaitReadable, awaitReadable, awaitWritable, awaitWritable, close, flush, getIoThread, getOption, getReadThread, getWorker, getWriteThread, isOpen, isReadResumed, isWriteResumed, receive, receive, receive, resumeReads, resumeWrites, send, send, send, sendFinal, sendFinal, sendFinal, setOption, shutdownReads, shutdownWrites, supportsOption, suspendReads, suspendWrites, wakeupReads, wakeupWrites
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
receive, receive, receive
send, send, send, sendFinal, sendFinal, sendFinal
awaitReadable, awaitReadable, getReadThread, isReadResumed, resumeReads, shutdownReads, suspendReads, wakeupReads
awaitWritable, awaitWritable, close, flush, getWriteThread, isOpen, isWriteResumed, resumeWrites, shutdownWrites, suspendWrites, wakeupWrites
getIoThread, getWorker
getOption, setOption, supportsOption
public AssembledConnectedMessageChannel(ConnectedChannel connection, ReadableMessageChannel readable, WritableMessageChannel writable)
connection
- the connected channelreadable
- the read channelwritable
- the write channelpublic AssembledConnectedMessageChannel(ReadableMessageChannel readable, WritableMessageChannel writable)
readable
- the read channelwritable
- the write channelpublic ChannelListener.Setter<? extends AssembledConnectedMessageChannel> getCloseSetter()
MessageChannel
getCloseSetter
in interface BoundChannel
getCloseSetter
in interface CloseableChannel
getCloseSetter
in interface ConnectedChannel
getCloseSetter
in interface ConnectedMessageChannel
getCloseSetter
in interface MessageChannel
getCloseSetter
in interface ReadableMessageChannel
getCloseSetter
in interface SuspendableChannel
getCloseSetter
in interface SuspendableReadChannel
getCloseSetter
in interface SuspendableWriteChannel
getCloseSetter
in interface WritableMessageChannel
getCloseSetter
in class AssembledMessageChannel
public ChannelListener.Setter<? extends AssembledConnectedMessageChannel> getReadSetter()
MessageChannel
getReadSetter
in interface ConnectedMessageChannel
getReadSetter
in interface MessageChannel
getReadSetter
in interface ReadableMessageChannel
getReadSetter
in interface SuspendableChannel
getReadSetter
in interface SuspendableReadChannel
getReadSetter
in class AssembledMessageChannel
public ChannelListener.Setter<? extends AssembledConnectedMessageChannel> getWriteSetter()
MessageChannel
getWriteSetter
in interface ConnectedMessageChannel
getWriteSetter
in interface MessageChannel
getWriteSetter
in interface SuspendableChannel
getWriteSetter
in interface SuspendableWriteChannel
getWriteSetter
in interface WritableMessageChannel
getWriteSetter
in class AssembledMessageChannel
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 © 2021 JBoss by Red Hat. All rights reserved.