Creates a new io.github.andrebeat.pool.ExpiringPool or
io.github.andrebeat.pool.SimplePool instance depending on whether a non-zero and finite
maxIdleTime
is set or not.
Creates a new io.github.andrebeat.pool.ExpiringPool or
io.github.andrebeat.pool.SimplePool instance depending on whether a non-zero and finite
maxIdleTime
is set or not.
the maximum capacity of the pool
the function used to create new objects in the pool
the reference type of objects in the io.github.andrebeat.pool.Pool. io.github.andrebeat.pool.ReferenceType.Soft and io.github.andrebeat.pool.ReferenceType.Weak reference are eligible for collection by the GC
the maximum amount of the time that objects are allowed to idle in the pool before being evicted
the function used to reset objects in the pool (called when leasing an object from the pool)
the function used to destroy an object from the pool
the predicate used to test whether an object is healthy and should be used, or destroyed otherwise.
a new instance of io.github.andrebeat.pool.Pool.
Object containing factory methods for io.github.andrebeat.pool.Pool.