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 TypeMethodDescriptionbooleanfinished()voidrelease()longlongtransferTo(DatagramChannel ch, SocketAddress raddr) longlong
-
Field Details
-
file
-
writtenBytes
private long writtenBytes
-
-
Constructor Details
-
FileSendBuffer
FileSendBuffer(FileRegion file)
-
-
Method Details
-
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
- Specified by:
transferToin interfaceSocketSendBufferPool.SendBuffer- Throws:
IOException
-
transferTo
- Specified by:
transferToin interfaceSocketSendBufferPool.SendBuffer
-
release
public void release()- Specified by:
releasein interfaceSocketSendBufferPool.SendBuffer
-