|
|||||||||
| 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. |
void |
resumeReads()
Resume reads on this channel. |
void |
shutdownReads()
Places this readable channel at "end of stream". |
void |
suspendReads()
Suspend further reads on this channel. |
| Methods inherited from interface java.nio.channels.Channel |
|---|
close, isOpen |
| Methods inherited from interface org.jboss.xnio.channels.Configurable |
|---|
getOption, getOptions, setOption |
| Method Detail |
|---|
void suspendReads()
IoReadHandler.handleReadable(java.nio.channels.Channel) method will not
be called until reads are resumed.
void resumeReads()
IoReadHandler.handleReadable(java.nio.channels.Channel) method will be
called as soon as there is data available to be read.
void shutdownReads()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
void awaitReadable()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
void awaitReadable(long time,
java.util.concurrent.TimeUnit timeUnit)
throws java.io.IOException
time - the time to waittimeUnit - the time unit
java.io.IOException - if an I/O error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||