DataBuffer that allows for buffers that share
a memory pool. Introduces methods for reference counting.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | Returns: true if the buffer was deallocated;
false otherwiseDecrease the reference count for this buffer by one, and deallocate it once the count reaches zero. |
| public PooledDataBuffer | |
| public PooledDataBuffer | Returns: this bufferRedeclares org. Associate the given hint with the data buffer for debugging purposes. |
| isAllocated | back to summary |
|---|---|
| public boolean isAllocated() Return
| |
| release | back to summary |
|---|---|
| public boolean release() Decrease the reference count for this buffer by one, and deallocate it once the count reaches zero.
| |
| retain | back to summary |
|---|---|
| public PooledDataBuffer retain() Increase the reference count for this buffer by one.
| |
| touch | back to summary |
|---|---|
| public PooledDataBuffer touch(Object hint) Redeclares org. Associate the given hint with the data buffer for debugging purposes.
| |