|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Receive
This interface models the in-progress reading of data from a channel to a source identified by an integer id
Method Summary | |
---|---|
boolean |
complete()
Are we done receiving data? |
long |
readFrom(java.nio.channels.ScatteringByteChannel channel)
Read bytes into this receive from the given channel |
java.nio.ByteBuffer[] |
reify()
Turn this receive into ByteBuffer instances, if possible (otherwise returns null). |
int |
source()
The numeric id of the source from which we are receiving data. |
Method Detail |
---|
int source()
boolean complete()
java.nio.ByteBuffer[] reify()
long readFrom(java.nio.channels.ScatteringByteChannel channel) throws java.io.IOException
channel
- The channel to read from
java.io.IOException
- If the reading fails
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |