Class BinaryMemoryAllocator
- java.lang.Object
-
- org.apache.ignite.internal.binary.streams.BinaryMemoryAllocator
-
public abstract class BinaryMemoryAllocator extends Object
On-heap memory allocator.
-
-
Field Summary
Fields Modifier and Type Field Description static intDFLT_MARSHAL_BUFFERS_PER_THREAD_POOL_SIZEstatic intDFLT_MARSHAL_BUFFERS_RECHECKstatic BinaryMemoryAllocatorPOOLEDPooled allocator instance.static BinaryMemoryAllocatorTHREAD_LOCALThread local allocator instance.
-
Constructor Summary
Constructors Constructor Description BinaryMemoryAllocator()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract BinaryMemoryAllocatorChunkchunk()abstract booleanisAcquired()
-
-
-
Field Detail
-
DFLT_MARSHAL_BUFFERS_RECHECK
public static final int DFLT_MARSHAL_BUFFERS_RECHECK
-
DFLT_MARSHAL_BUFFERS_PER_THREAD_POOL_SIZE
public static final int DFLT_MARSHAL_BUFFERS_PER_THREAD_POOL_SIZE
-
THREAD_LOCAL
public static final BinaryMemoryAllocator THREAD_LOCAL
Thread local allocator instance.
-
POOLED
public static final BinaryMemoryAllocator POOLED
Pooled allocator instance.
-
-
Method Detail
-
chunk
public abstract BinaryMemoryAllocatorChunk chunk()
-
isAcquired
public abstract boolean isAcquired()
-
-