|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activeio.packet.PacketPool
org.apache.activeio.packet.ByteBufferPacketPool
public final class ByteBufferPacketPool
Provides a simple pool of ByteBuffer objects.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.activeio.packet.PacketPool |
---|
PacketPool.PooledPacket |
Field Summary |
---|
Fields inherited from class org.apache.activeio.packet.PacketPool |
---|
DEFAULT_PACKET_SIZE, DEFAULT_POOL_SIZE |
Constructor Summary | |
---|---|
ByteBufferPacketPool(int packetCount,
int packetSize)
Creates a pool of bufferCount ByteBuffers that are
directly allocated being bufferSize big. |
Method Summary | |
---|---|
protected Packet |
allocateNewPacket()
|
Methods inherited from class org.apache.activeio.packet.PacketPool |
---|
dispose, getPacket, waitForPacketsToReturn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteBufferPacketPool(int packetCount, int packetSize)
bufferCount
ByteBuffers that are
directly allocated being bufferSize
big.
packetCount
- the number of buffers that will be in the pool.packetSize
- the size of the buffers that are in the pool.Method Detail |
---|
protected Packet allocateNewPacket()
allocateNewPacket
in class PacketPool
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |