|
XNIO version 1.2.0.GA | ||||||||
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 | |
---|---|
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, resumeWrites, shutdownWrites, suspendWrites |
Methods inherited from interface java.nio.channels.Channel |
---|
close, isOpen |
Methods inherited from interface org.jboss.xnio.channels.Configurable |
---|
getOption, getOptions, setOption |
Method Detail |
---|
boolean send(ByteBuffer buffer) throws IOException
buffer
- the message to send
true
if the message was sent, or false
if there was insufficient room in the send buffer
IOException
- if an I/O error occursboolean send(ByteBuffer[] buffers) throws IOException
buffers
- the buffers holding the message to send
true
if the message was sent, or false
if there was insufficient room in the send buffer
IOException
- if an I/O error occursboolean 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 there was insufficient room in the send buffer
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 |