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(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.
|
awaitWritable, awaitWritable, close, flush, getWriteThread, isWriteResumed, resumeWrites, shutdownWrites, suspendWrites, wakeupWritesgetWorkergetOption, setOption, supportsOptionboolean send(ByteBuffer buffer) throws IOException
buffer - the message to sendtrue if the message was sent, or false if it would blockIOException - if an I/O error occursboolean send(ByteBuffer[] buffers) throws IOException
buffers - the buffers holding the message to sendtrue if the message was sent, or false if it would blockIOException - 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 sendtrue if the message was sent, or false if it would blockIOException - 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 © 2012 JBoss by Red Hat. All Rights Reserved.