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 Object
implements SocketSendBufferPool.SendBuffer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
finished()
void
release()
final long
final long
transferTo
(DatagramChannel ch, SocketAddress raddr) final long
final long
-
Field Details
-
buffer
-
initialPos
final int initialPos
-
-
Constructor Details
-
UnpooledSendBuffer
UnpooledSendBuffer(ByteBuffer buffer)
-
-
Method Details
-
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
- Specified by:
transferTo
in interfaceSocketSendBufferPool.SendBuffer
- Throws:
IOException
-
transferTo
- Specified by:
transferTo
in interfaceSocketSendBufferPool.SendBuffer
- Throws:
IOException
-
release
public void release()- Specified by:
release
in interfaceSocketSendBufferPool.SendBuffer
-