|
XNIO API 3.0.4.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SuspendableAcceptChannel
A suspendable accept channel. This type of channel is associated with a listener which can suspend and resume accepting connections as needed.
Method Summary | |
---|---|
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. |
ChannelListener.Setter<? extends SuspendableAcceptChannel> |
getCloseSetter()
Get the setter which can be used to change the close listener for this channel. |
void |
resumeAccepts()
Resume reads on this channel. |
void |
suspendAccepts()
Suspend further read notifications on this channel. |
void |
wakeupAccepts()
resumeAccepts() Resume accepts} on this channel, and force the accept listener to be triggered even if the
channel isn't actually ready. |
Methods inherited from interface org.xnio.channels.CloseableChannel |
---|
close, getWorker |
Methods inherited from interface java.nio.channels.Channel |
---|
isOpen |
Methods inherited from interface org.xnio.channels.Configurable |
---|
getOption, setOption, supportsOption |
Method Detail |
---|
void suspendAccepts()
void resumeAccepts()
void wakeupAccepts()
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 well
IOException
- if an I/O error occursvoid awaitAcceptable(long time, TimeUnit timeUnit) throws IOException
time
- the time to waittimeUnit
- the time unit
InterruptedIOException
- if the operation is interrupted; the thread's interrupt flag will be set as well
IOException
- if an I/O error occursChannelListener.Setter<? extends SuspendableAcceptChannel> getAcceptSetter()
ChannelListener.Setter<? extends SuspendableAcceptChannel> getCloseSetter()
getCloseSetter
in interface CloseableChannel
|
XNIO API 3.0.4.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |