Class ConcurrentPool<P>

java.lang.Object
org.eclipse.jetty.util.ConcurrentPool<P>
Type Parameters:
P - the type of the pooled objects
All Implemented Interfaces:
Dumpable, Pool<P>

@ManagedObject public class ConcurrentPool<P> extends Object implements Pool<P>, Dumpable

A concurrent implementation of Pool.

This implementation offers a number of strategies used to select the entry returned from acquire(), and its capacity is bounded to a max size.

When a pooled item is acquired from this pool, it is only held by a WeakReference, so that if it is collected before being released, then that leak is detected and the entry is removed (see getLeaked().