| Modifier and Type | Field and Description |
|---|---|
| private ChannelListener | |
| private MessageSinkConduit | |
| private final Configurable | |
| private ChannelListener |
| Access | Constructor and Description |
|---|---|
| public | ConduitWritableMessageChannel(final Configurable
the configurable to delegate configuration requests to configurable, final MessageSinkConduit the initial conduit to use for data transport conduit)Construct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| 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 ConduitWritableMessageChannel | |
| public void | |
| public boolean | flush()
Implements org. Flush any waiting partial send or write. |
| public ChannelListener | getCloseListener()
Implements org. Get the close listener. |
| public ChannelListener. | getCloseSetter()
Implements org. Get the setter which can be used to change the close listener for this channel. |
| public MessageSinkConduit | Returns: the underlying conduit for this channelGet the underlying conduit 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 XnioWorker | getWorker()
Implements org. Get the worker for this channel. |
| public ChannelListener | getWriteListener()
Implements org. Get the write listener. |
| 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 org. Determine whether this channel is open. |
| public boolean | isWriteResumed()
Implements org. Determine whether writes are resumed. |
| public void | resumeWrites()
Implements org. Resume writes on this channel. |
| public boolean | send(final ByteBuffer
the message to send dst)Implements org. Send a complete message. |
| public boolean | send(final ByteBuffer[]
the buffers holding the message to send srcs)Implements org. Send a complete message. |
| public boolean | send(final ByteBuffer[]
the buffers holding the message to send dsts, 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 void | setCloseListener(final ChannelListener<? super ConduitWritableMessageChannel>
the close listener closeListener)Implements org. Set the close listener. |
| public void | setConduit(final MessageSinkConduit
the underlying conduit for this channel conduit)Set the underlying conduit for this channel. |
| 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 | setWriteListener(final ChannelListener<? super ConduitWritableMessageChannel>
the write listener writeListener)Implements org. Set the write listener. |
| 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 | suspendWrites()
Implements org. Suspend further write notifications on this channel. |
| public void | wakeupWrites()
Implements org.
|
| closeListener | back to summary |
|---|---|
| private ChannelListener<? super ConduitWritableMessageChannel> closeListener | |
| conduit | back to summary |
|---|---|
| private MessageSinkConduit conduit | |
| configurable | back to summary |
|---|---|
| private final Configurable configurable | |
| writeListener | back to summary |
|---|---|
| private ChannelListener<? super ConduitWritableMessageChannel> writeListener | |
| ConduitWritableMessageChannel | back to summary |
|---|---|
| public ConduitWritableMessageChannel(final Configurable configurable, final MessageSinkConduit conduit) Construct a new instance.
| |
| 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.
| |
| clone | back to summary |
|---|---|
| public ConduitWritableMessageChannel clone() Overrides java. Duplicate this channel. Changing the delegate conduit in one channel will not affect the other.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements org. Doc from org. Close this channel. If data has been written but not flushed, that data may be discarded, depending on the channel implementation. 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
| |
| getCloseListener | back to summary |
|---|---|
| public ChannelListener Implements org. Doc from org. Get the close listener.
| |
| 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.
| |
| getConduit | back to summary |
|---|---|
| public MessageSinkConduit getConduit() Get the underlying conduit for this channel.
| |
| 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.
| |
| getWorker | back to summary |
|---|---|
| public XnioWorker getWorker() Implements org. Doc from org. Get the worker for this channel.
| |
| getWriteListener | back to summary |
|---|---|
| public ChannelListener Implements org. Doc from org. Get the write listener.
| |
| 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 org. Doc from org. Determine whether this channel is open. This method will return
| |
| isWriteResumed | back to summary |
|---|---|
| public boolean isWriteResumed() Implements org. Doc from org. Determine whether writes are resumed.
| |
| 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 dst) throws IOException Implements org. Doc from org. Send a complete message.
| |
| send | back to summary |
|---|---|
| public boolean send(final ByteBuffer[] srcs) throws IOException Implements org. Doc from org. Send a complete message.
| |
| send | back to summary |
|---|---|
| public boolean send(final ByteBuffer[] dsts, 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.
| |
| setCloseListener | back to summary |
|---|---|
| public void setCloseListener(final ChannelListener<? super ConduitWritableMessageChannel> closeListener) Implements org. Doc from org. Set the close listener.
| |
| setConduit | back to summary |
|---|---|
| public void setConduit(final MessageSinkConduit conduit) Set the underlying conduit for this channel.
| |
| 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.
| |
| setWriteListener | back to summary |
|---|---|
| public void setWriteListener(final ChannelListener<? super ConduitWritableMessageChannel> writeListener) Implements org. Doc from org. Set the write listener.
| |
| 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.
| |
| suspendWrites | back to summary |
|---|---|
| public void suspendWrites() Implements org. Doc from org. Suspend further write notifications on this channel. | |
| wakeupWrites | back to summary |
|---|---|
| public void wakeupWrites() Implements org. Doc from org.
| |