| Modifier and Type | Field and Description |
|---|---|
| private final CloseableChannel | |
| private final ChannelListener. | |
| private final ReadableMessageChannel | |
| private final ChannelListener. | |
| private final WritableMessageChannel | |
| private final ChannelListener. |
| Access | Constructor and Description |
|---|---|
| public | AssembledMessageChannel(final CloseableChannel
the single central closeable channel closeable, final ReadableMessageChannel the read channel readable, final WritableMessageChannel the write channel writable)Construct a new instance. |
| public | AssembledMessageChannel(final ReadableMessageChannel
the read channel readable, final WritableMessageChannel the write channel writable)Construct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | awaitReadable()
Implements org. Block until this channel becomes readable again. |
| public void | awaitReadable(final long
the time to wait time, final TimeUnit the time unit timeUnit)Implements org. Block until this channel becomes readable again, or until the timeout expires. |
| public void | awaitWritable()
Implements org. Block until this channel becomes writable again. |
| public void | awaitWritable(final long
the time to wait time, final TimeUnit the time unit timeUnit)Implements org. Block until this channel becomes writable again, or until the timeout expires. |
| public void | close()
Implements org. Close this channel. |
| public boolean | flush()
Implements org. Flush any waiting partial send or write. |
| public ChannelListener. | getCloseSetter()
Implements org. Get the setter which can be used to change the close listener for this channel. |
| public XnioIoThread | getIoThread()
Implements org. Get the I/O thread associated with this channel. |
| public <T> T | getOption(final Option<T>
the option to get option)Implements org. Get the value of a channel option. |
| public ChannelListener. | getReadSetter()
Implements org. Get the setter which can be used to change the read listener for this channel. |
| public XnioExecutor | getReadThread()
Implements org.
Deprecated
Get the read thread for this channel. |
| public XnioWorker | getWorker()
Implements org. Get the worker for this channel. |
| public ChannelListener. | getWriteSetter()
Implements org. Get the setter which can be used to change the write listener for this channel. |
| public XnioExecutor | getWriteThread()
Implements org.
Deprecated
Get the write thread for this channel. |
| public boolean | isOpen()
Implements java. Tells whether or not this channel is open. |
| public boolean | isReadResumed()
Implements org. Determine whether reads are resumed. |
| public boolean | isWriteResumed()
Implements org. Determine whether writes are resumed. |
| public int | receive(final ByteBuffer
the buffer that will hold the message buffer)Implements org. Receive a message. |
| public long | receive(final ByteBuffer[]
the buffers that will hold the message buffers)Implements org. Receive a message. |
| public long | receive(final ByteBuffer[]
the buffers that will hold the message buffers, final int the offset into the array of buffers of the first buffer to read into offs, final int the number of buffers to fill len)Implements org. Receive a message. |
| public void | resumeReads()
Implements org. Resume reads on this channel. |
| public void | resumeWrites()
Implements org. Resume writes on this channel. |
| public boolean | send(final ByteBuffer
the message to send buffer)Implements org. Send a complete message. |
| public boolean | send(final ByteBuffer[]
the buffers holding the message to send buffers)Implements org. Send a complete message. |
| public boolean | send(final ByteBuffer[]
the buffers holding the message to send buffers, final int the offset into the buffer array of the first buffer offs, final int the number of buffers that contain data to send len)Implements org. Send a complete message. |
| public boolean | sendFinal(ByteBuffer
the message to send buffer)Implements org. Send a complete message. |
| public boolean | sendFinal(ByteBuffer[]
the buffers holding the message to send buffers)Implements org. Send a complete message. |
| public boolean | sendFinal(ByteBuffer[]
the buffers holding the message to send buffers, int the offset into the buffer array of the first buffer offs, int the number of buffers that contain data to send len)Implements org. Send a complete message. |
| public <T> T | setOption(final Option<T>
the option to set option, final T the value of the option to set value)Implements org. Set an option for this channel. |
| public void | shutdownReads()
Implements org. Places this readable channel at "end of stream". |
| public void | shutdownWrites()
Implements org. Indicate that writing is complete for this channel. |
| public boolean | supportsOption(final Option<?>
the option option)Implements org. Determine whether an option is supported on this channel. |
| public void | suspendReads()
Implements org. Suspend further read notifications on this channel. |
| public void | suspendWrites()
Implements org. Suspend further write notifications on this channel. |
| public void | wakeupReads()
Implements org.
|
| public void | wakeupWrites()
Implements org.
|
| closeable | back to summary |
|---|---|
| private final CloseableChannel closeable | |
| closeSetter | back to summary |
|---|---|
| private final ChannelListener. | |
| readable | back to summary |
|---|---|
| private final ReadableMessageChannel readable | |
| readSetter | back to summary |
|---|---|
| private final ChannelListener. | |
| writable | back to summary |
|---|---|
| private final WritableMessageChannel writable | |
| writeSetter | back to summary |
|---|---|
| private final ChannelListener. | |
| AssembledMessageChannel | back to summary |
|---|---|
| public AssembledMessageChannel(final CloseableChannel closeable, final ReadableMessageChannel readable, final WritableMessageChannel writable) Construct a new instance.
| |
| AssembledMessageChannel | back to summary |
|---|---|
| public AssembledMessageChannel(final ReadableMessageChannel readable, final WritableMessageChannel writable) Construct a new instance.
| |
| awaitReadable | back to summary |
|---|---|
| public void awaitReadable() throws IOException Implements org. Doc from org. Block until this channel becomes readable again. This method may return spuriously before the channel becomes readable.
| |
| awaitReadable | back to summary |
|---|---|
| public void awaitReadable(final long time, final TimeUnit timeUnit) throws IOException Implements org. Doc from org. Block until this channel becomes readable again, or until the timeout expires. This method may return spuriously before the channel becomes readable or the timeout expires.
| |
| awaitWritable | back to summary |
|---|---|
| public void awaitWritable() throws IOException Implements org. Doc from org. Block until this channel becomes writable again. This method may return spuriously before the channel becomes writable.
| |
| awaitWritable | back to summary |
|---|---|
| public void awaitWritable(final long time, final TimeUnit timeUnit) throws IOException Implements org. Doc from org. Block until this channel becomes writable again, or until the timeout expires. This method may return spuriously before the channel becomes writable or the timeout expires.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements org. Doc from org. Close this channel. When a channel is closed, its close listener is invoked. Invoking this method more than once has no additional effect.
| |
| flush | back to summary |
|---|---|
| public boolean flush() throws IOException Implements org. Doc from org. Flush any waiting partial send or write. If there is no data to flush, or if the flush completed successfully,
this method will return
| |
| getCloseSetter | back to summary |
|---|---|
| public ChannelListener. Implements org. Doc from org. Get the setter which can be used to change the close listener for this channel. If the channel is already closed, then the listener will not be called.
| |
| getIoThread | back to summary |
|---|---|
| public XnioIoThread getIoThread() Implements org. Doc from org. Get the I/O thread associated with this channel.
| |
| getOption | back to summary |
|---|---|
| public <T> T getOption(final Option<T> option) throws IOException Implements org. Doc from org. Get the value of a channel option.
| |
| getReadSetter | back to summary |
|---|---|
| public ChannelListener. Implements org. Doc from org. Get the setter which can be used to change the read listener for this channel.
| |
| getReadThread | back to summary |
|---|---|
| public XnioExecutor getReadThread() Implements org. Doc from org. Deprecated
Get the read thread for this channel.
| |
| getWorker | back to summary |
|---|---|
| public XnioWorker getWorker() Implements org. Doc from org. Get the worker for this channel.
| |
| getWriteSetter | back to summary |
|---|---|
| public ChannelListener. Implements org. Doc from org. Get the setter which can be used to change the write listener for this channel.
| |
| getWriteThread | back to summary |
|---|---|
| public XnioExecutor getWriteThread() Implements org. Doc from org. Deprecated
Get the write thread for this channel.
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements java. Doc from java. Tells whether or not this channel is open.
| |
| isReadResumed | back to summary |
|---|---|
| public boolean isReadResumed() Implements org. Doc from org. Determine whether reads are resumed.
| |
| isWriteResumed | back to summary |
|---|---|
| public boolean isWriteResumed() Implements org. Doc from org. Determine whether writes are resumed.
| |
| receive | back to summary |
|---|---|
| public int receive(final ByteBuffer buffer) throws IOException Implements org. Doc from org. Receive a message.
| |
| receive | back to summary |
|---|---|
| public long receive(final ByteBuffer[] buffers) throws IOException Implements org. Doc from org. Receive a message.
| |
| receive | back to summary |
|---|---|
| public long receive(final ByteBuffer[] buffers, final int offs, final int len) throws IOException Implements org. Doc from org. Receive a message.
| |
| resumeReads | back to summary |
|---|---|
| public void resumeReads() Implements org. Doc from org. Resume reads on this channel. The read listener will be called as soon as there is data available to be read. | |
| resumeWrites | back to summary |
|---|---|
| public void resumeWrites() Implements org. Doc from org. Resume writes on this channel. The write listener will be called as soon as the channel becomes writable. | |
| send | back to summary |
|---|---|
| public boolean send(final ByteBuffer buffer) throws IOException Implements org. Doc from org. Send a complete message.
| |
| send | back to summary |
|---|---|
| public boolean send(final ByteBuffer[] buffers) throws IOException Implements org. Doc from org. Send a complete message.
| |
| send | back to summary |
|---|---|
| public boolean send(final ByteBuffer[] buffers, final int offs, final int len) throws IOException Implements org. Doc from org. Send a complete message.
| |
| sendFinal | back to summary |
|---|---|
| public boolean sendFinal(ByteBuffer buffer) throws IOException Implements org. Doc from org. Send a complete message. If the message was successfully sent the channel with have its writes shutdown.
| |
| sendFinal | back to summary |
|---|---|
| public boolean sendFinal(ByteBuffer[] buffers) throws IOException Implements org. Doc from org. Send a complete message. If the message was successfully sent the channel with have its writes shutdown.
| |
| sendFinal | back to summary |
|---|---|
| public boolean sendFinal(ByteBuffer[] buffers, int offs, int len) throws IOException Implements org. Doc from org. Send a complete message. If the message was successfully sent the channel with have its writes shutdown.
| |
| setOption | back to summary |
|---|---|
| public <T> T setOption(final Option<T> option, final T value) throws IllegalArgumentException, IOException Implements org. Doc from org. Set an option for this channel. Unsupported options are ignored.
| |
| shutdownReads | back to summary |
|---|---|
| public void shutdownReads() throws IOException Implements org. Doc from org. Places this readable channel at "end of stream". Further reads will result in EOF.
Shutting down all directions of a channel will cause
| |
| shutdownWrites | back to summary |
|---|---|
| public void shutdownWrites() throws IOException Implements org. Doc from org. Indicate that writing is complete for this channel. Further attempts to write data to this channel
after this method is invoked will result in an exception. If this method was already called, calling this method
again will have no additional effect. After this method is called, any remaining data still must be flushed out
via the
| |
| supportsOption | back to summary |
|---|---|
| public boolean supportsOption(final Option<?> option) Implements org. Doc from org. Determine whether an option is supported on this channel.
| |
| suspendReads | back to summary |
|---|---|
| public void suspendReads() Implements org. Doc from org. Suspend further read notifications on this channel. | |
| suspendWrites | back to summary |
|---|---|
| public void suspendWrites() Implements org. Doc from org. Suspend further write notifications on this channel. | |
| wakeupReads | back to summary |
|---|---|
| public void wakeupReads() Implements org. Doc from org.
| |
| wakeupWrites | back to summary |
|---|---|
| public void wakeupWrites() Implements org. Doc from org.
| |