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