public final class ThreadLocalData extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DefaultBufferSize
Initial buffer size on first use of thread local buffer.
|
Constructor and Description |
---|
ThreadLocalData() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
getBuffer()
Return thread local buffer.
|
static byte[] |
resizeBuffer(int size)
Resize and return thread local buffer if the requested size <= 128 KB.
|
public static int DefaultBufferSize
public static byte[] getBuffer()
public static byte[] resizeBuffer(int size)
This method should only be called when the current buffer is too small to hold the desired data.
Copyright ? 2012–2018 Aerospike, Inc. All rights reserved.