Interface LockedPool.Tracker<T>

Type Parameters:
T - the type of pooled objects
Enclosing class:
LockedPool<P>

public static interface LockedPool.Tracker<T>

A receiver of Pool events.

A simple implementations may just count acquire/release/remove pool events via, respectively, acquired(Pool, Entry), released(Pool, Entry) and removed(Pool, Entry), and make sure that the count is 0 when terminated(Pool, Collection) is called.

More advanced implementations may also obtain a stack trace at the time of the event to troubleshoot leaking of pooled entries.