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 |
release()
Decrease the reference count for this buffer by one, and release 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
PooledDataBuffer retain()
boolean release()
true
if the buffer was released; false
otherwise