final class SocketSendBufferPool.FileSendBuffer extends java.lang.Object implements SocketSendBufferPool.SendBuffer
| Modifier and Type | Field and Description |
|---|---|
private FileRegion |
file |
private long |
writtenBytes |
| Constructor and Description |
|---|
FileSendBuffer(FileRegion file) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
finished() |
void |
release() |
long |
totalBytes() |
long |
transferTo(java.nio.channels.DatagramChannel ch,
java.net.SocketAddress raddr) |
long |
transferTo(java.nio.channels.WritableByteChannel ch) |
long |
writtenBytes() |
private final FileRegion file
private long writtenBytes
FileSendBuffer(FileRegion file)
public boolean finished()
finished in interface SocketSendBufferPool.SendBufferpublic long writtenBytes()
writtenBytes in interface SocketSendBufferPool.SendBufferpublic long totalBytes()
totalBytes in interface SocketSendBufferPool.SendBufferpublic long transferTo(java.nio.channels.WritableByteChannel ch)
throws java.io.IOException
transferTo in interface SocketSendBufferPool.SendBufferjava.io.IOExceptionpublic long transferTo(java.nio.channels.DatagramChannel ch,
java.net.SocketAddress raddr)
transferTo in interface SocketSendBufferPool.SendBufferpublic void release()
release in interface SocketSendBufferPool.SendBuffer