public interface SuspendableAcceptChannel extends CloseableChannel
Modifier and Type | Method and Description |
---|---|
void |
awaitAcceptable()
Block until this channel becomes acceptable again.
|
void |
awaitAcceptable(long time,
java.util.concurrent.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. |
close, getWorker
getOption, setOption, supportsOption
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 java.io.IOException
java.io.InterruptedIOException
- if the operation is interrupted; the thread's interrupt flag will be set as welljava.io.IOException
- if an I/O error occursvoid awaitAcceptable(long time, java.util.concurrent.TimeUnit timeUnit) throws java.io.IOException
time
- the time to waittimeUnit
- the time unitjava.io.InterruptedIOException
- if the operation is interrupted; the thread's interrupt flag will be set as welljava.io.IOException
- if an I/O error occursChannelListener.Setter<? extends SuspendableAcceptChannel> getAcceptSetter()
ChannelListener.Setter<? extends SuspendableAcceptChannel> getCloseSetter()
getCloseSetter
in interface CloseableChannel
Copyright © 2010 JBoss, a division of Red Hat, Inc.