|
XNIO version 1.1.0.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 | |
---|---|
int |
receive(ByteBuffer buffer)
Receive a message. |
int |
receive(ByteBuffer[] buffers)
Receive a message. |
int |
receive(ByteBuffer[] buffers,
int offs,
int len)
Receive a message. |
Methods inherited from interface org.jboss.xnio.channels.SuspendableReadChannel |
---|
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(ByteBuffer buffer) throws IOException
buffer
- the buffer that will hold the message
IOException
- if an I/O error occursint receive(ByteBuffer[] buffers) throws IOException
buffers
- the buffers that will hold the message
IOException
- if an I/O error occursint 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 occurs
|
XNIO version 1.1.0.GA | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |