A generic object pooling implementation based on java.util.concurrent.ArrayBlockingQueue.
An object pool that creates the objects as needed until a maximum number of objects has been created and automatically evicts objects after they have been idle for a given amount of time.
A lease on an object requested from a io.github.andrebeat.pool.Pool allowing the object to be accessed and then released back to the pool when no longer needed.
A pool of objects that may be leased.
An enum-type for Java reference types.
A simple object pool that creates the objects as needed until a maximum number of objects has been created.
Object containing factory methods for io.github.andrebeat.pool.ExpiringPool.
Object containing factory methods for io.github.andrebeat.pool.Pool.
Object containing factory methods for io.github.andrebeat.pool.SimplePool.
This library provides classes for dealing with object pooling that allow:
Overview
In order create a new io.github.andrebeat.pool.Pool the constructor method should be used like so
Additionally, in order to avoid manually releasing the lease after its used, you can use the
use
method on the lease: