Interface RetainableByteBuffer

All Superinterfaces:
Retainable
All Known Implementing Classes:
AbstractRetainableByteBuffer, ArrayByteBufferPool.Tracking.Buffer, RetainableByteBuffer.Wrapper

public interface RetainableByteBuffer extends Retainable

A pooled ByteBuffer which maintains a reference count that is incremented with Retainable.retain() and decremented with Retainable.release().

The ByteBuffer is released to a ByteBufferPool when Retainable.release() is called one more time than Retainable.retain(); in such case, the call to Retainable.release() returns true.

A RetainableByteBuffer can either be: