Class SocketSendBufferPool.FileSendBuffer
- java.lang.Object
-
- org.jboss.netty.channel.socket.nio.SocketSendBufferPool.FileSendBuffer
-
- All Implemented Interfaces:
SocketSendBufferPool.SendBuffer
- Enclosing class:
- SocketSendBufferPool
final class SocketSendBufferPool.FileSendBuffer extends java.lang.Object implements SocketSendBufferPool.SendBuffer
-
-
Field Summary
Fields Modifier and Type Field Description private FileRegion
file
private long
writtenBytes
-
Constructor Summary
Constructors Constructor Description FileSendBuffer(FileRegion file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
file
private final FileRegion file
-
writtenBytes
private long writtenBytes
-
-
Constructor Detail
-
FileSendBuffer
FileSendBuffer(FileRegion file)
-
-
Method Detail
-
finished
public boolean finished()
- Specified by:
finished
in interfaceSocketSendBufferPool.SendBuffer
-
writtenBytes
public long writtenBytes()
- Specified by:
writtenBytes
in interfaceSocketSendBufferPool.SendBuffer
-
totalBytes
public long totalBytes()
- Specified by:
totalBytes
in interfaceSocketSendBufferPool.SendBuffer
-
transferTo
public long transferTo(java.nio.channels.WritableByteChannel ch) throws java.io.IOException
- Specified by:
transferTo
in interfaceSocketSendBufferPool.SendBuffer
- Throws:
java.io.IOException
-
transferTo
public long transferTo(java.nio.channels.DatagramChannel ch, java.net.SocketAddress raddr)
- Specified by:
transferTo
in interfaceSocketSendBufferPool.SendBuffer
-
release
public void release()
- Specified by:
release
in interfaceSocketSendBufferPool.SendBuffer
-
-