public final class BufferPool.LocalPool
extends java.lang.Object
Constructor and Description |
---|
LocalPool() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRecyclePartially() |
java.nio.ByteBuffer |
get(int size) |
java.nio.ByteBuffer |
getAtLeast(int size) |
boolean |
isTinyPool() |
void |
put(java.nio.ByteBuffer buffer) |
void |
putUnusedPortion(java.nio.ByteBuffer buffer) |
void |
recycle(org.apache.cassandra.utils.memory.BufferPool.Chunk chunk)
Recycle a fully freed chunk
|
void |
recyclePartially(org.apache.cassandra.utils.memory.BufferPool.Chunk chunk)
Recycle a partially freed chunk
|
BufferPool.LocalPool |
recycleWhenFree(boolean recycleWhenFree) |
void |
release() |
public void put(java.nio.ByteBuffer buffer)
public void putUnusedPortion(java.nio.ByteBuffer buffer)
public java.nio.ByteBuffer get(int size)
public java.nio.ByteBuffer getAtLeast(int size)
public void recycle(org.apache.cassandra.utils.memory.BufferPool.Chunk chunk)
public void recyclePartially(org.apache.cassandra.utils.memory.BufferPool.Chunk chunk)
public boolean canRecyclePartially()
public void release()
public boolean isTinyPool()
public BufferPool.LocalPool recycleWhenFree(boolean recycleWhenFree)
Copyright © 2009- The Apache Software Foundation