public class BoundedByteBufferSend extends java.lang.Object implements Send
Constructor and Description |
---|
BoundedByteBufferSend(java.nio.ByteBuffer buffer) |
BoundedByteBufferSend(Send request) |
Modifier and Type | Method and Description |
---|---|
BoundedByteBufferSend |
duplicate() |
boolean |
isSendComplete()
Returns true if the all data has been written
|
long |
sizeInBytes()
The total size in bytes that needs to be written to the channel
|
long |
writeTo(java.nio.channels.WritableByteChannel channel)
Writes content into the provided channel
|
public BoundedByteBufferSend(Send request) throws java.io.IOException
java.io.IOException
public BoundedByteBufferSend(java.nio.ByteBuffer buffer)
public long writeTo(java.nio.channels.WritableByteChannel channel) throws java.io.IOException
Send
public boolean isSendComplete()
Send
isSendComplete
in interface Send
public long sizeInBytes()
Send
sizeInBytes
in interface Send
public BoundedByteBufferSend duplicate()