public interface PooledDataBuffer extends DataBuffer
DataBuffer
that allows for buffer that share a memory
pool. Introduces methods for reference counting.Modifier and Type | Method and Description |
---|---|
boolean |
isAllocated()
Return
true if this buffer is allocated; false if it has been deallocated. |
boolean |
release()
Decrease the reference count for this buffer by one, and deallocate it
once the count reaches zero.
|
PooledDataBuffer |
retain()
Increase the reference count for this buffer by one.
|
asByteBuffer, asByteBuffer, asInputStream, asInputStream, asOutputStream, capacity, capacity, factory, getByte, indexOf, lastIndexOf, read, read, read, readableByteCount, readPosition, readPosition, slice, writableByteCount, write, write, write, write, write, writePosition, writePosition
boolean isAllocated()
true
if this buffer is allocated; false
if it has been deallocated.PooledDataBuffer retain()
boolean release()
true
if the buffer was deallocated; false
otherwise.