|
XNIO API 3.1.0.Beta1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnio.channels.AssembledMessageChannel org.xnio.channels.AssembledConnectedMessageChannel
public class AssembledConnectedMessageChannel
A connected bidirectional message channel assembled from a readable and writable message channel.
Constructor Summary | |
---|---|
AssembledConnectedMessageChannel(ConnectedChannel connection,
ReadableMessageChannel readable,
WritableMessageChannel writable)
Construct a new instance. |
|
AssembledConnectedMessageChannel(ReadableMessageChannel readable,
WritableMessageChannel writable)
Construct a new instance. |
Method Summary | ||
---|---|---|
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. |
|
|
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. |
|
|
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. |
Methods inherited from class org.xnio.channels.AssembledMessageChannel |
---|
awaitReadable, awaitReadable, awaitWritable, awaitWritable, close, flush, getOption, getReadThread, getWorker, getWriteThread, isOpen, isReadResumed, isWriteResumed, receive, receive, receive, resumeReads, resumeWrites, send, send, send, setOption, shutdownReads, shutdownWrites, supportsOption, suspendReads, suspendWrites, wakeupReads, wakeupWrites |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xnio.channels.CloseableChannel |
---|
close, getWorker |
Methods inherited from interface java.nio.channels.Channel |
---|
isOpen |
Methods inherited from interface org.xnio.channels.Configurable |
---|
getOption, setOption, supportsOption |
Constructor Detail |
---|
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 channelMethod Detail |
---|
public ChannelListener.Setter<? extends AssembledConnectedMessageChannel> getCloseSetter()
MessageChannel
getCloseSetter
in interface BoundChannel
getCloseSetter
in interface CloseableChannel
getCloseSetter
in interface ConnectedChannel
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 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 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 class
null
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 class
null
if unknown
|
XNIO API 3.1.0.Beta1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |