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, asInputStream, asOutputStream, factory, indexOf, lastIndexOf, read, read, read, readableByteCount, slice, write, write, write, write, write
PooledDataBuffer retain()
boolean release()
true
if the buffer was released; false
otherwise.