|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.kafka.common.network.ByteBufferSend
public class ByteBufferSend
A send backed by an array of byte buffers
Field Summary | |
---|---|
protected java.nio.ByteBuffer[] |
buffers
|
Constructor Summary | |
---|---|
ByteBufferSend(int destination,
java.nio.ByteBuffer... buffers)
|
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 |
int |
size()
|
long |
writeTo(java.nio.channels.GatheringByteChannel channel)
Write some as-yet unwritten bytes from this send to the provided channel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.nio.ByteBuffer[] buffers
Constructor Detail |
---|
public ByteBufferSend(int destination, java.nio.ByteBuffer... buffers)
Method Detail |
---|
public int destination()
Send
destination
in interface Send
public boolean completed()
Send
completed
in interface Send
public java.nio.ByteBuffer[] reify()
Send
reify
in interface Send
public int remaining()
Send
remaining
in interface Send
public int size()
public long writeTo(java.nio.channels.GatheringByteChannel channel) throws java.io.IOException
Send
writeTo
in interface Send
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 |