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 Object
implements SocketSendBufferPool.SendBuffer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
finished()
void
release()
long
long
transferTo
(DatagramChannel ch, SocketAddress raddr) long
long
-
Field Details
-
file
-
writtenBytes
private long writtenBytes
-
-
Constructor Details
-
FileSendBuffer
FileSendBuffer(FileRegion file)
-
-
Method Details
-
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
- Specified by:
transferTo
in interfaceSocketSendBufferPool.SendBuffer
- Throws:
IOException
-
transferTo
- Specified by:
transferTo
in interfaceSocketSendBufferPool.SendBuffer
-
release
public void release()- Specified by:
release
in interfaceSocketSendBufferPool.SendBuffer
-