|
XNIO API 2.0.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 | |
---|---|
ChannelListener.Setter<? extends WritableMessageChannel> |
getCloseSetter()
Get the setter which can be used to change the close handler for this channel. |
ChannelListener.Setter<? extends WritableMessageChannel> |
getWriteSetter()
Get the setter which can be used to change the write handler for this channel. |
boolean |
send(java.nio.ByteBuffer buffer)
Send a complete message. |
boolean |
send(java.nio.ByteBuffer[] buffers)
Send a complete message. |
boolean |
send(java.nio.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(java.nio.ByteBuffer buffer) throws java.io.IOException
buffer
- the message to send
true
if the message was sent, or false
if it would block
java.io.IOException
- if an I/O error occursboolean send(java.nio.ByteBuffer[] buffers) throws java.io.IOException
buffers
- the buffers holding the message to send
true
if the message was sent, or false
if it would block
java.io.IOException
- if an I/O error occursboolean send(java.nio.ByteBuffer[] buffers, int offs, int len) throws java.io.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
java.io.IOException
- if an I/O error occursChannelListener.Setter<? extends WritableMessageChannel> getWriteSetter()
getWriteSetter
in interface SuspendableWriteChannel
ChannelListener.Setter<? extends WritableMessageChannel> getCloseSetter()
getCloseSetter
in interface CloseableChannel
getCloseSetter
in interface SuspendableWriteChannel
|
XNIO API 2.0.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |