public interface SuspendableAcceptChannel extends CloseableChannel
EMPTY
Modifier and Type | Method and Description |
---|---|
void |
awaitAcceptable()
Block until this channel becomes acceptable again.
|
void |
awaitAcceptable(long time,
TimeUnit timeUnit)
Block until this channel becomes acceptable again, or until the timeout expires.
|
ChannelListener.Setter<? extends SuspendableAcceptChannel> |
getAcceptSetter()
Get the setter which can be used to change the accept listener for this channel.
|
XnioExecutor |
getAcceptThread()
Deprecated.
The
getIoThread() method should be used instead. |
ChannelListener.Setter<? extends SuspendableAcceptChannel> |
getCloseSetter()
Get the setter which can be used to change the close listener for this channel.
|
XnioIoThread |
getIoThread()
Get an accept thread for this channel.
|
boolean |
isAcceptResumed()
Determine whether accepts are resumed.
|
void |
resumeAccepts()
Resume reads on this channel.
|
void |
suspendAccepts()
Suspend further read notifications on this channel.
|
void |
wakeupAccepts()
Deprecated.
Users should instead submit
Runnable tasks to the channel thread when this functionality is needed. |
close, getWorker
getOption, setOption, supportsOption
void suspendAccepts()
void resumeAccepts()
boolean isAcceptResumed()
true
if accepts are resumed, false
if accepts are suspended@Deprecated void wakeupAccepts()
Runnable
tasks to the channel thread when this functionality is needed.resumeAccepts()
Resume accepts} on this channel, and force the accept listener to be triggered even if the
channel isn't actually ready.void awaitAcceptable() throws IOException
InterruptedIOException
- if the operation is interrupted; the thread's interrupt flag will be set as wellIOException
- if an I/O error occursvoid awaitAcceptable(long time, TimeUnit timeUnit) throws IOException
time
- the time to waittimeUnit
- the time unitInterruptedIOException
- if the operation is interrupted; the thread's interrupt flag will be set as wellIOException
- if an I/O error occurs@Deprecated XnioExecutor getAcceptThread()
getIoThread()
method should be used instead.XnioIoThread getIoThread()
getIoThread
in interface CloseableChannel
ChannelListener.Setter<? extends SuspendableAcceptChannel> getAcceptSetter()
ChannelListener.Setter<? extends SuspendableAcceptChannel> getCloseSetter()
getCloseSetter
in interface CloseableChannel
Copyright © 2017 JBoss by Red Hat. All rights reserved.