|
|||||||||
| 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 | |
|---|---|
int |
receive(java.nio.ByteBuffer buffer)
Receive a message. |
long |
receive(java.nio.ByteBuffer[] buffers)
Receive a message. |
long |
receive(java.nio.ByteBuffer[] buffers,
int offs,
int len)
Receive a message. |
| Methods inherited from interface org.jboss.xnio.channels.SuspendableReadChannel |
|---|
awaitReadable, awaitReadable, resumeReads, shutdownReads, suspendReads |
| Methods inherited from interface java.nio.channels.Channel |
|---|
close, isOpen |
| Methods inherited from interface org.jboss.xnio.channels.Configurable |
|---|
getOption, getOptions, setOption |
| Method Detail |
|---|
int receive(java.nio.ByteBuffer buffer)
throws java.io.IOException
buffer - the buffer that will hold the message
java.io.IOException - if an I/O error occurs
long receive(java.nio.ByteBuffer[] buffers)
throws java.io.IOException
buffers - the buffers that will hold the message
java.io.IOException - if an I/O error occurs
long receive(java.nio.ByteBuffer[] buffers,
int offs,
int len)
throws java.io.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
java.io.IOException - if an I/O error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||