Class BufferPool.LocalPool
java.lang.Object
org.apache.cassandra.utils.memory.BufferPool.LocalPool
- Enclosing class:
- BufferPool
A thread local class that grabs chunks from the global pool for this thread allocations.
Only one thread can do the allocations but multiple threads can release the allocations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanget(int size) getAtLeast(int size) booleanvoidput(ByteBuffer buffer) voidputUnusedPortion(ByteBuffer buffer) voidrecycle(org.apache.cassandra.utils.memory.BufferPool.Chunk chunk) voidrecyclePartially(org.apache.cassandra.utils.memory.BufferPool.Chunk chunk) recycleWhenFree(boolean recycleWhenFree) voidrelease()
-
Constructor Details
-
LocalPool
public LocalPool()
-
-
Method Details
-
put
-
putUnusedPortion
-
get
-
getAtLeast
-
recycle
public void recycle(org.apache.cassandra.utils.memory.BufferPool.Chunk chunk) -
recyclePartially
public void recyclePartially(org.apache.cassandra.utils.memory.BufferPool.Chunk chunk) -
canRecyclePartially
public boolean canRecyclePartially() -
release
public void release() -
isTinyPool
public boolean isTinyPool() -
recycleWhenFree
-