Closes this pool and future calls to **take** will cause the scala.concurrent.Future to raise an com.github.mauricio.async.db.postgresql.pool.PoolAlreadyTerminatedException.
Closes this pool and future calls to **take** will cause the scala.concurrent.Future to raise an com.github.mauricio.async.db.postgresql.pool.PoolAlreadyTerminatedException.
Returns an object to the pool.
Returns an object to the pool. The object is validated before being added to the collection of available objects to make sure we have a usable object. If the object isn't valid it's discarded.
Asks for an object from the pool, this object should be returned to the pool when not in use anymore.
Asks for an object from the pool, this object should be returned to the pool when not in use anymore.
Implements an com.github.mauricio.async.db.postgresql.pool.AsyncObjectPool using a single thread from a fixed executor service with a single thread as an event loop to cause all calls to be sequential.
Once you are done with this object remember to call it's close method to clean up the thread pool and it's objects as this might prevent your application from ending.
type of the object this pool holds