|
XNIO API 2.1.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WritableMessageChannel

A channel that can send messages.
| Method Summary | |
|---|---|
ChannelListener.Setter<? extends WritableMessageChannel> |
getCloseSetter()
Get the setter which can be used to change the close listener for this channel. |
ChannelListener.Setter<? extends WritableMessageChannel> |
getWriteSetter()
Get the setter which can be used to change the write listener for this channel. |
boolean |
send(ByteBuffer buffer)
Send a complete message. |
boolean |
send(ByteBuffer[] buffers)
Send a complete message. |
boolean |
send(ByteBuffer[] buffers,
int offs,
int len)
Send a complete message. |
| Methods inherited from interface org.jboss.xnio.channels.SuspendableWriteChannel |
|---|
awaitWritable, awaitWritable, flush, resumeWrites, shutdownWrites, suspendWrites |
| Methods inherited from interface java.nio.channels.Channel |
|---|
close, isOpen |
| Methods inherited from interface org.jboss.xnio.channels.Configurable |
|---|
getOption, setOption, supportsOption |
| Method Detail |
|---|
boolean send(ByteBuffer buffer)
throws IOException
buffer - the message to send
true if the message was sent, or false if it would block
IOException - if an I/O error occurs
boolean send(ByteBuffer[] buffers)
throws IOException
buffers - the buffers holding the message to send
true if the message was sent, or false if it would block
IOException - if an I/O error occurs
boolean send(ByteBuffer[] buffers,
int offs,
int len)
throws IOException
buffers - the buffers holding the message to sendoffs - the offset into the buffer array of the first bufferlen - the number of buffers that contain data to send
true if the message was sent, or false if it would block
IOException - if an I/O error occursChannelListener.Setter<? extends WritableMessageChannel> getWriteSetter()
getWriteSetter in interface SuspendableWriteChannelChannelListener.Setter<? extends WritableMessageChannel> getCloseSetter()
getCloseSetter in interface CloseableChannelgetCloseSetter in interface SuspendableWriteChannel
|
XNIO API 2.1.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||