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 FileRegionfileprivate longwrittenBytes
-
Constructor Summary
Constructors Constructor Description FileSendBuffer(FileRegion file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfinished()voidrelease()longtotalBytes()longtransferTo(java.nio.channels.DatagramChannel ch, java.net.SocketAddress raddr)longtransferTo(java.nio.channels.WritableByteChannel ch)longwrittenBytes()
-
-
-
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:
finishedin interfaceSocketSendBufferPool.SendBuffer
-
writtenBytes
public long writtenBytes()
- Specified by:
writtenBytesin interfaceSocketSendBufferPool.SendBuffer
-
totalBytes
public long totalBytes()
- Specified by:
totalBytesin interfaceSocketSendBufferPool.SendBuffer
-
transferTo
public long transferTo(java.nio.channels.WritableByteChannel ch) throws java.io.IOException- Specified by:
transferToin interfaceSocketSendBufferPool.SendBuffer- Throws:
java.io.IOException
-
transferTo
public long transferTo(java.nio.channels.DatagramChannel ch, java.net.SocketAddress raddr)- Specified by:
transferToin interfaceSocketSendBufferPool.SendBuffer
-
release
public void release()
- Specified by:
releasein interfaceSocketSendBufferPool.SendBuffer
-
-