PgPool

A pool of PostgreSQL connections.

@author <a href="mailto:julien@julienviet.com">Julien Viet</a>

Members

Static functions

pool
PgPool pool(PgConnectOptions connectOptions, PoolOptions poolOptions)

Create a connection pool to the database configured with the given {@code connectOptions} and {@code poolOptions}.

Inherited Members

From Pool

getConnection
SqlConnection getConnection()

Get a connection from the pool.

begin
Transaction begin()

Borrow a connection from the pool and begin a transaction, the underlying connection will be returned to the pool when the transaction ends.

close
void close()

Close the pool and release the associated resources.

available
int available()
Undocumented in source.
waiters
int waiters()
Undocumented in source.
maxSize
int maxSize()
Undocumented in source.
size
int size()
Undocumented in source.

Meta