public class AssembledConnectedStreamChannel extends AssembledStreamChannel implements ConnectedStreamChannel
EMPTY
Constructor and Description |
---|
AssembledConnectedStreamChannel(ConnectedChannel connection,
StreamSourceChannel source,
StreamSinkChannel sink)
Construct a new instance.
|
AssembledConnectedStreamChannel(StreamSourceChannel source,
StreamSinkChannel sink)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
ChannelListener.Setter<? extends AssembledConnectedStreamChannel> |
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 AssembledConnectedStreamChannel> |
getReadSetter()
Get the setter which can be used to change the read listener for this channel.
|
ChannelListener.Setter<? extends AssembledConnectedStreamChannel> |
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, read, read, read, resumeReads, resumeWrites, setOption, shutdownReads, shutdownWrites, supportsOption, suspendReads, suspendWrites, transferFrom, transferFrom, transferTo, transferTo, wakeupReads, wakeupWrites, write, write, write, writeFinal, writeFinal, writeFinal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
transferFrom, transferFrom, writeFinal, writeFinal, writeFinal
awaitWritable, awaitWritable, close, flush, getWriteThread, isOpen, isWriteResumed, resumeWrites, shutdownWrites, suspendWrites, wakeupWrites
transferTo, transferTo
awaitReadable, awaitReadable, getReadThread, isReadResumed, resumeReads, shutdownReads, suspendReads, wakeupReads
getIoThread, getWorker
getOption, setOption, supportsOption
write, write
write
read, read
read
public AssembledConnectedStreamChannel(ConnectedChannel connection, StreamSourceChannel source, StreamSinkChannel sink)
connection
- the connected channelsource
- the sourcesink
- the sinkpublic AssembledConnectedStreamChannel(StreamSourceChannel source, StreamSinkChannel sink)
source
- the sourcesink
- the sinkpublic ChannelListener.Setter<? extends AssembledConnectedStreamChannel> getCloseSetter()
StreamChannel
getCloseSetter
in interface BoundChannel
getCloseSetter
in interface CloseableChannel
getCloseSetter
in interface ConnectedChannel
getCloseSetter
in interface ConnectedStreamChannel
getCloseSetter
in interface StreamChannel
getCloseSetter
in interface StreamSinkChannel
getCloseSetter
in interface StreamSourceChannel
getCloseSetter
in interface SuspendableChannel
getCloseSetter
in interface SuspendableReadChannel
getCloseSetter
in interface SuspendableWriteChannel
getCloseSetter
in class AssembledStreamChannel
public ChannelListener.Setter<? extends AssembledConnectedStreamChannel> getReadSetter()
StreamChannel
getReadSetter
in interface ConnectedStreamChannel
getReadSetter
in interface StreamChannel
getReadSetter
in interface StreamSourceChannel
getReadSetter
in interface SuspendableChannel
getReadSetter
in interface SuspendableReadChannel
getReadSetter
in class AssembledStreamChannel
public ChannelListener.Setter<? extends AssembledConnectedStreamChannel> getWriteSetter()
StreamChannel
getWriteSetter
in interface ConnectedStreamChannel
getWriteSetter
in interface StreamChannel
getWriteSetter
in interface StreamSinkChannel
getWriteSetter
in interface SuspendableChannel
getWriteSetter
in interface SuspendableWriteChannel
getWriteSetter
in class AssembledStreamChannel
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.