|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Send
This interface models the in-progress sending of data to a destination identified by an integer id.
Method Summary | |
---|---|
boolean |
completed()
Is this send complete? |
int |
destination()
The numeric id for the destination of this send |
java.nio.ByteBuffer[] |
reify()
An optional method to turn this send into an array of ByteBuffers if possible (otherwise returns null) |
int |
remaining()
The number of bytes remaining to send |
long |
writeTo(java.nio.channels.GatheringByteChannel channel)
Write some as-yet unwritten bytes from this send to the provided channel. |
Method Detail |
---|
int destination()
int remaining()
boolean completed()
java.nio.ByteBuffer[] reify()
long writeTo(java.nio.channels.GatheringByteChannel channel) throws java.io.IOException
channel
- The channel to write to
java.io.IOException
- If the write fails
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |