Class ManagedBuffer<T extends Buffer>


public class ManagedBuffer<T extends Buffer> extends Object
A wrapper around a Buffer that maintains a lock count for that buffer.

All methods known from Buffer are provided and delegate to the backing buffer. Managed buffers can be used to maintain pools of buffers. Buffers are locked when retrieved from the pool and can automatically be returned when the last lock is released.

Newly created managed buffer always have a lock count of 1 (you create them for using them, don’t you).