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 intprivate final intprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinished()voidrelease()longlongtransferTo(DatagramChannel ch, SocketAddress raddr) longlong
-
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:
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- Throws:
IOException
-
release
public void release()- Specified by:
releasein interfaceSocketSendBufferPool.SendBuffer
-