Class ByteBufferPool
java.lang.Object
org.gridgain.internal.snapshots.buffer.ByteBufferPool
A byte buffer pool with a byte capacity limiting mechanism.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns future with disposable byte buffer reference.intReturns available buffer pool capacity.intReturns next allocated byte buffer size.
-
Constructor Details
-
ByteBufferPool
public ByteBufferPool(int capacityLimit, int bufferSize) Constructor.
-
-
Method Details
-
availableCapacity
public int availableCapacity()Returns available buffer pool capacity. -
bufferSize
public int bufferSize()Returns next allocated byte buffer size. -
allocate
Returns future with disposable byte buffer reference. Capacity of pool will be reserved until buffer dispose.- Parameters:
byteOrder- Buffer byte order.
-