public static final class BufferPool.LocalPool
extends java.lang.Object
Constructor and Description |
---|
LocalPool() |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
get(int size) |
java.nio.ByteBuffer |
get(int size,
boolean allocateOnHeapWhenExhausted) |
java.nio.ByteBuffer |
getAtLeast(int size) |
java.nio.ByteBuffer |
getAtLeast(int size,
boolean allocateOnHeapWhenExhausted) |
void |
put(java.nio.ByteBuffer buffer) |
void |
put(java.nio.ByteBuffer buffer,
org.apache.cassandra.utils.memory.BufferPool.Chunk chunk) |
void |
putUnusedPortion(java.nio.ByteBuffer buffer) |
void |
recycle(org.apache.cassandra.utils.memory.BufferPool.Chunk chunk) |
BufferPool.LocalPool |
recycleWhenFree(boolean recycleWhenFree) |
void |
release() |
java.nio.ByteBuffer |
tryGet(int size) |
java.nio.ByteBuffer |
tryGetAtLeast(int size) |
public void put(java.nio.ByteBuffer buffer)
public void put(java.nio.ByteBuffer buffer, org.apache.cassandra.utils.memory.BufferPool.Chunk chunk)
public void putUnusedPortion(java.nio.ByteBuffer buffer)
public java.nio.ByteBuffer get(int size)
public java.nio.ByteBuffer get(int size, boolean allocateOnHeapWhenExhausted)
public java.nio.ByteBuffer getAtLeast(int size)
public java.nio.ByteBuffer getAtLeast(int size, boolean allocateOnHeapWhenExhausted)
public java.nio.ByteBuffer tryGet(int size)
public java.nio.ByteBuffer tryGetAtLeast(int size)
public void recycle(org.apache.cassandra.utils.memory.BufferPool.Chunk chunk)
public void release()
public BufferPool.LocalPool recycleWhenFree(boolean recycleWhenFree)
Copyright © 2009-2019 The Apache Software Foundation