| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | awaitReadable(long
the time to wait time, TimeUnit the time unit timeUnit)Block until this channel becomes readable again, or until the timeout expires. |
| 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 read 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 read thread for this channel. |
| public boolean | Returns: true if reads are resumed, false if reads are suspendedDetermine whether reads are resumed. |
| public void | |
| public void | |
| public void | |
| public void | wakeupReads()
Deprecated
Users should instead submit
Runnable tasks to the channel thread when this functionality is needed.
|
| awaitReadable | back to summary |
|---|---|
| public void awaitReadable() throws IOException Block until this channel becomes readable again. This method may return spuriously before the channel becomes readable.
| |
| awaitReadable | back to summary |
|---|---|
| public void awaitReadable(long time, TimeUnit timeUnit) throws IOException 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.
| |
| 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.
| |
| getReadSetter | back to summary |
|---|---|
| public ChannelListener. Get the setter which can be used to change the read listener for this channel.
| |
| getReadThread | back to summary |
|---|---|
| public XnioExecutor getReadThread()
Deprecated The Get the read thread for this channel.
| |
| isReadResumed | back to summary |
|---|---|
| public boolean isReadResumed() Determine whether reads are resumed.
| |
| resumeReads | back to summary |
|---|---|
| public void resumeReads() Resume reads on this channel. The read listener will be called as soon as there is data available to be read. | |
| shutdownReads | back to summary |
|---|---|
| public void shutdownReads() throws IOException Places this readable channel at "end of stream". Further reads will result in EOF.
Shutting down all directions of a channel will cause
| |
| suspendReads | back to summary |
|---|---|
| public void suspendReads() Suspend further read notifications on this channel. | |
| wakeupReads | back to summary |
|---|---|
| public void wakeupReads()
Deprecated Users should instead submit
| |