
public interface WritableMessageChannel extends SuspendableWriteChannel, Configurable
| Modifier and Type | Method and Description |
|---|---|
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(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.
|
awaitWritable, awaitWritable, close, flush, getWriteThread, isWriteResumed, resumeWrites, shutdownWrites, suspendWrites, wakeupWritesgetWorkergetOption, setOption, supportsOptionboolean send(java.nio.ByteBuffer buffer)
throws java.io.IOException
buffer - the message to sendtrue if the message was sent, or false if it would blockjava.io.IOException - if an I/O error occursboolean send(java.nio.ByteBuffer[] buffers)
throws java.io.IOException
buffers - the buffers holding the message to sendtrue if the message was sent, or false if it would blockjava.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 sendtrue if the message was sent, or false if it would blockjava.io.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 SuspendableWriteChannelCopyright © 2010 JBoss, a division of Red Hat, Inc.