| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | awaitWritable(long
the time to wait time, TimeUnit the time unit timeUnit)Block until this channel becomes writable again, or until the timeout expires. |
| public void | |
| public boolean | Returns: true if the message was flushed, or false if the result would blockFlush any waiting partial send or write. |
| public ChannelListener. | getCloseSetter()
Redeclares org. Get the setter which can be used to change the close listener for this channel. |
| public ChannelListener. | Returns: the setterGet the setter which can be used to change the write listener for this channel. |
| public XnioExecutor | Returns: the thread, ornull if none is configured or available
Deprecated
The
getIoThread() method should be used instead.
Get the write thread for this channel. |
| public boolean | Returns: true if the channel is open, false otherwiseRedeclares java. Determine whether this channel is open. |
| public boolean | Returns: true if writes are resumed, false if writes are suspendedDetermine whether writes are resumed. |
| public void | |
| public void | |
| public void | |
| public void | wakeupWrites()
Deprecated
Users should instead submit
Runnable tasks to the channel thread when this functionality is needed.
|
| awaitWritable | back to summary |
|---|---|
| public void awaitWritable() throws IOException Block until this channel becomes writable again. This method may return spuriously before the channel becomes writable.
| |
| awaitWritable | back to summary |
|---|---|
| public void awaitWritable(long time, TimeUnit timeUnit) throws IOException 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 Redeclares 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 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. Redeclares 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.
| |
| getWriteSetter | back to summary |
|---|---|
| public ChannelListener. Get the setter which can be used to change the write listener for this channel.
| |
| getWriteThread | back to summary |
|---|---|
| public XnioExecutor getWriteThread()
Deprecated The Get the write thread for this channel.
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Redeclares java. Determine whether this channel is open. This method will return
| |
| isWriteResumed | back to summary |
|---|---|
| public boolean isWriteResumed() Determine whether writes are resumed.
| |
| resumeWrites | back to summary |
|---|---|
| public void resumeWrites() Resume writes on this channel. The write listener will be called as soon as the channel becomes writable. | |
| shutdownWrites | back to summary |
|---|---|
| public void shutdownWrites() throws IOException 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
| |
| suspendWrites | back to summary |
|---|---|
| public void suspendWrites() Suspend further write notifications on this channel. | |
| wakeupWrites | back to summary |
|---|---|
| public void wakeupWrites()
Deprecated Users should instead submit
| |