|
XNIO version 1.2.0.GA | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SuspendableWriteChannel
A suspendable writable channel. This type of channel is associated with a handler which can suspend and resume writes as needed.
Method Summary | |
---|---|
void |
awaitWritable()
Block until this channel becomes writable again. |
void |
awaitWritable(long time,
TimeUnit timeUnit)
Block until this channel becomes writable again, or until the timeout expires. |
void |
resumeWrites()
Resume writes on this channel. |
void |
shutdownWrites()
Indicate that writing is complete for this channel. |
void |
suspendWrites()
Suspend further writes 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 suspendWrites()
IoWriteHandler.handleWritable(java.nio.channels.Channel)
method will not
be called until writes are resumed.
void resumeWrites()
IoWriteHandler.handleWritable(java.nio.channels.Channel)
method will be
called as soon as there is space in the channel's transmit buffer.
void shutdownWrites() throws IOException
IOException
- if an I/O error occursvoid awaitWritable() throws IOException
IOException
- if an I/O error occursvoid awaitWritable(long time, TimeUnit timeUnit) throws IOException
time
- the time to waittimeUnit
- the time unit
IOException
- if an I/O error occurs
|
XNIO version 1.2.0.GA | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |