|
XNIO API 2.0.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SuspendableReadChannel
A suspendable readable channel. This type of channel is associated with a handler which can suspend and resume reads as needed.
Method Summary | |
---|---|
void |
awaitReadable()
Block until this channel becomes readable again. |
void |
awaitReadable(long time,
java.util.concurrent.TimeUnit timeUnit)
Block until this channel becomes readable again, or until the timeout expires. |
ChannelListener.Setter<? extends SuspendableReadChannel> |
getCloseSetter()
Get the setter which can be used to change the close handler for this channel. |
ChannelListener.Setter<? extends SuspendableReadChannel> |
getReadSetter()
Get the setter which can be used to change the read handler for this channel. |
void |
resumeReads()
Resume reads on this channel. |
void |
shutdownReads()
Places this readable channel at "end of stream". |
void |
suspendReads()
Suspend further read notifications on this channel. |
Methods inherited from interface java.nio.channels.Channel |
---|
close, isOpen |
Methods inherited from interface org.jboss.xnio.channels.Configurable |
---|
getOption, setOption, supportsOption |
Method Detail |
---|
void suspendReads()
void resumeReads()
void shutdownReads() throws java.io.IOException
java.io.IOException
- if an I/O error occursvoid awaitReadable() throws java.io.IOException
java.io.InterruptedIOException
- if the operation is interrupted; the thread's interrupt flag will be set as well
java.io.IOException
- if an I/O error occursvoid awaitReadable(long time, java.util.concurrent.TimeUnit timeUnit) throws java.io.IOException
time
- the time to waittimeUnit
- the time unit
java.io.InterruptedIOException
- if the operation is interrupted; the thread's interrupt flag will be set as well
java.io.IOException
- if an I/O error occursChannelListener.Setter<? extends SuspendableReadChannel> getReadSetter()
ChannelListener.Setter<? extends SuspendableReadChannel> getCloseSetter()
getCloseSetter
in interface CloseableChannel
|
XNIO API 2.0.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |