| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | awaitAcceptable(long
the time to wait time, TimeUnit the time unit timeUnit)Block until this channel becomes acceptable again, or until the timeout expires. |
| public ChannelListener. | Returns: the setterGet the setter which can be used to change the accept listener for this channel. |
| public XnioExecutor | Returns: the thread
Deprecated
The
getIoThread() method should be used instead.
Get an accept thread for this channel. |
| public ChannelListener. | getCloseSetter()
Redeclares org. Get the setter which can be used to change the close listener for this channel. |
| public XnioIoThread | Returns: the threadRedeclares org. Get an accept thread for this channel. |
| public boolean | Returns: true if accepts are resumed, false if accepts are suspendedDetermine whether accepts are resumed. |
| public void | |
| public void | |
| public void | wakeupAccepts()
Deprecated
Users should instead submit
Runnable tasks to the channel thread when this functionality is needed.
|
| awaitAcceptable | back to summary |
|---|---|
| public void awaitAcceptable() throws IOException Block until this channel becomes acceptable again. This method may return spuriously before the channel becomes acceptable.
| |
| awaitAcceptable | back to summary |
|---|---|
| public void awaitAcceptable(long time, TimeUnit timeUnit) throws IOException Block until this channel becomes acceptable again, or until the timeout expires. This method may return spuriously before the channel becomes acceptable or the timeout expires.
| |
| getAcceptSetter | back to summary |
|---|---|
| public ChannelListener. Get the setter which can be used to change the accept listener for this channel.
| |
| getAcceptThread | back to summary |
|---|---|
| public XnioExecutor getAcceptThread()
Deprecated The Get an accept thread for this channel. If more than one is configured, any of them may be returned.
| |
| 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.
| |
| getIoThread | back to summary |
|---|---|
| public XnioIoThread getIoThread() Redeclares org. Get an accept thread for this channel. If more than one is configured, any of them may be returned.
| |
| isAcceptResumed | back to summary |
|---|---|
| public boolean isAcceptResumed() Determine whether accepts are resumed.
| |
| resumeAccepts | back to summary |
|---|---|
| public void resumeAccepts() Resume reads on this channel. The accept listener will be called as soon as there is a connection available to be accepted. | |
| suspendAccepts | back to summary |
|---|---|
| public void suspendAccepts() Suspend further read notifications on this channel. | |
| wakeupAccepts | back to summary |
|---|---|
| public void wakeupAccepts()
Deprecated Users should instead submit
| |