ConnectionPoolDataSourceImpl

Simple connection pool DataSource implementation. When close() is called on connection received from this pool, it will be returned to pool instead of closing. Next getConnection() will just return existing connection from pool, instead of slow connection establishment process.

Constructors

this
this(Driver driver, string url, string[string] params, int maxPoolSize, int timeToLive, int waitTimeOut)
Undocumented in source.

Members

Functions

getConnection
Connection getConnection()
Undocumented in source. Be warned that the author may not have intended to support it.
onConnectionClosed
void onConnectionClosed(Connection connection)
Undocumented in source. Be warned that the author may not have intended to support it.
removeUsed
void removeUsed(Connection connection)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From DataSourceImpl

driver
Driver driver;
Undocumented in source.
url
string url;
Undocumented in source.
params
string[string] params;
Undocumented in source.
getConnection
Connection getConnection()
Undocumented in source. Be warned that the author may not have intended to support it.

From ConnectionCloseHandler

onConnectionClosed
void onConnectionClosed(Connection connection)
Undocumented in source.

Meta