public interface ReadableMessageChannel extends SuspendableReadChannel, Configurable
| Modifier and Type | Method and Description |
|---|---|
ChannelListener.Setter<? extends ReadableMessageChannel> |
getCloseSetter()
Get the setter which can be used to change the close listener for this channel.
|
ChannelListener.Setter<? extends ReadableMessageChannel> |
getReadSetter()
Get the setter which can be used to change the read listener for this channel.
|
int |
receive(ByteBuffer buffer)
Receive a message.
|
long |
receive(ByteBuffer[] buffers)
Receive a message.
|
long |
receive(ByteBuffer[] buffers,
int offs,
int len)
Receive a message.
|
awaitReadable, awaitReadable, getReadThread, isReadResumed, resumeReads, shutdownReads, suspendReads, wakeupReadsclose, getWorkergetOption, setOption, supportsOptionint receive(ByteBuffer buffer) throws IOException
buffer - the buffer that will hold the messageIOException - if an I/O error occurslong receive(ByteBuffer[] buffers) throws IOException
buffers - the buffers that will hold the messageIOException - if an I/O error occurslong receive(ByteBuffer[] buffers, int offs, int len) throws IOException
buffers - the buffers that will hold the messageoffs - the offset into the array of buffers of the first buffer to read intolen - the number of buffers to fillIOException - if an I/O error occursChannelListener.Setter<? extends ReadableMessageChannel> getReadSetter()
getReadSetter in interface SuspendableReadChannelChannelListener.Setter<? extends ReadableMessageChannel> getCloseSetter()
getCloseSetter in interface CloseableChannelgetCloseSetter in interface SuspendableReadChannelCopyright © 2012 JBoss by Red Hat. All Rights Reserved.