Factory method for creating new objects.
a new object.
An health check that is performed on an object before its leased from the pool.
Resets the internal state of object.
Acquire a lease for an object blocking if none is available.
Returns the capacity of the pool, i.e.
Drains the object pool, i.e.
Fills the object pool by creating (and pooling) new objects until the number of live objects reaches the pool capacity.
Returns the number of leased objects.
the number of leased objects.
Returns the number of live objects, i.e.
Returns the io.github.andrebeat.pool.ReferenceType of the objects stored in the pool.
Returns the number of objects in the pool.
Try to acquire a lease for an object blocking at most until the given duration.
Try to acquire a lease for an object without blocking.