PoolBase

Todo :

- handle timeout when acquiring a connection - for per statement pooling, have several physical connection and use the less busy one to avoid head of line blocking effect

@author <a href="mailto:julien@julienviet.com">Julien Viet</a> @author <a href="mailto:emad.albloushi@gmail.com">Emad Alblueshi</a>

Constructors

this
this(DbPoolOptions options)
Undocumented in source.

Members

Functions

available
int available()
Undocumented in source. Be warned that the author may not have intended to support it.
begin
Transaction begin()
Undocumented in source. Be warned that the author may not have intended to support it.
close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
connect
void connect(AsyncDbConnectionHandler completionHandler)
Undocumented in source.
doClose
void doClose()
Undocumented in source. Be warned that the author may not have intended to support it.
getConnection
SqlConnection getConnection()
Undocumented in source. Be warned that the author may not have intended to support it.
maxSize
int maxSize()
Undocumented in source. Be warned that the author may not have intended to support it.
nextPromiseId
int nextPromiseId()
Undocumented in source. Be warned that the author may not have intended to support it.
size
int size()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
waiters
int waiters()
Undocumented in source. Be warned that the author may not have intended to support it.
wrap
SqlConnection wrap(DbConnection conn)
Undocumented in source.

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