Class SocketSendBufferPool.GatheringSendBuffer
java.lang.Object
org.jboss.netty.channel.socket.nio.SocketSendBufferPool.GatheringSendBuffer
- All Implemented Interfaces:
SocketSendBufferPool.SendBuffer
- Enclosing class:
SocketSendBufferPool
static class SocketSendBufferPool.GatheringSendBuffer
extends Object
implements SocketSendBufferPool.SendBuffer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ByteBuffer[]
private final int
private final int
private long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
finished()
void
release()
long
long
transferTo
(DatagramChannel ch, SocketAddress raddr) long
long
-
Field Details
-
buffers
-
last
private final int last -
written
private long written -
total
private final int total
-
-
Constructor Details
-
GatheringSendBuffer
GatheringSendBuffer(ByteBuffer[] buffers)
-
-
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
- Throws:
IOException
-
release
public void release()- Specified by:
release
in interfaceSocketSendBufferPool.SendBuffer
-