|
XNIO API 3.0.7.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReadableMessageChannel
A channel that can receive messages. Such a channel receives whole messages only.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface org.xnio.channels.SuspendableReadChannel |
|---|
awaitReadable, awaitReadable, getReadThread, isReadResumed, resumeReads, shutdownReads, suspendReads, wakeupReads |
| Methods inherited from interface org.xnio.channels.CloseableChannel |
|---|
close, getWorker |
| Methods inherited from interface java.nio.channels.Channel |
|---|
isOpen |
| Methods inherited from interface org.xnio.channels.Configurable |
|---|
getOption, setOption, supportsOption |
| Method Detail |
|---|
int receive(ByteBuffer buffer)
throws IOException
buffer - the buffer that will hold the message
IOException - if an I/O error occurs
long receive(ByteBuffer[] buffers)
throws IOException
buffers - the buffers that will hold the message
IOException - if an I/O error occurs
long 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 fill
IOException - if an I/O error occursChannelListener.Setter<? extends ReadableMessageChannel> getReadSetter()
getReadSetter in interface SuspendableReadChannelChannelListener.Setter<? extends ReadableMessageChannel> getCloseSetter()
getCloseSetter in interface CloseableChannelgetCloseSetter in interface SuspendableReadChannel
|
XNIO API 3.0.7.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||