|
XNIO API 3.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 channel
public AssembledConnectedMessageChannel(ReadableMessageChannel readable,
WritableMessageChannel writable)
readable - the read channelwritable - the write channel| Method Detail |
|---|
public ChannelListener.Setter<? extends AssembledConnectedMessageChannel> getCloseSetter()
MessageChannel
getCloseSetter in interface BoundChannelgetCloseSetter in interface CloseableChannelgetCloseSetter in interface ConnectedChannelgetCloseSetter in interface MessageChannelgetCloseSetter in interface ReadableMessageChannelgetCloseSetter in interface SuspendableChannelgetCloseSetter in interface SuspendableReadChannelgetCloseSetter in interface SuspendableWriteChannelgetCloseSetter in interface WritableMessageChannelgetCloseSetter in class AssembledMessageChannelpublic ChannelListener.Setter<? extends AssembledConnectedMessageChannel> getReadSetter()
MessageChannel
getReadSetter in interface MessageChannelgetReadSetter in interface ReadableMessageChannelgetReadSetter in interface SuspendableChannelgetReadSetter in interface SuspendableReadChannelgetReadSetter in class AssembledMessageChannelpublic ChannelListener.Setter<? extends AssembledConnectedMessageChannel> getWriteSetter()
MessageChannel
getWriteSetter in interface MessageChannelgetWriteSetter in interface SuspendableChannelgetWriteSetter in interface SuspendableWriteChannelgetWriteSetter in interface WritableMessageChannelgetWriteSetter in class AssembledMessageChannelpublic SocketAddress getPeerAddress()
ConnectedChannel
getPeerAddress in interface ConnectedChannelpublic <A extends SocketAddress> A getPeerAddress(Class<A> type)
ConnectedChannelnull if the address is not of that
type.
getPeerAddress in interface ConnectedChanneltype - the address type class
null if unknownpublic SocketAddress getLocalAddress()
BoundChannel
getLocalAddress in interface BoundChannelpublic <A extends SocketAddress> A getLocalAddress(Class<A> type)
BoundChannelnull if the address is not of that
type.
getLocalAddress in interface BoundChannelA - 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 | |||||||||