|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.util.ConnectionPool
com.waveset.util.KiddiePool
A private, homogeneous JDBC connection pool.
Nested Class Summary |
Nested classes inherited from class com.waveset.util.ConnectionPool |
ConnectionPool.Bucket |
Field Summary | |
static java.lang.String |
code_id
|
Fields inherited from class com.waveset.util.ConnectionPool |
_disabled |
Constructor Summary | |
KiddiePool()
Create a private, homogeneous connection pool |
Method Summary | |
protected void |
addPooledConnection(PooledConnection con)
Add a connection back to the pool. |
protected void |
dumpConnections(java.lang.StringBuffer sb)
It only makes sense to dump the free connections per pool if there are multiple pools in the bucket. |
void |
flush()
Close all connections in the pool. |
PooledConnection |
getConnection()
Obtain a connection from the only bucket this "kiddie" pool has. |
int |
getFreeConnectionCount()
|
PooledConnection |
getPooledConnection()
Get a pooled connection if available. |
Methods inherited from class com.waveset.util.ConnectionPool |
destroy, dump, dump, dumpGlobal, dumpGlobal, dumpPrivate, flushConnections, flushPrivate, getConnection, getConnection, getConnection, getConnection, getConnectionPool, getVersion, incCreateStats, incDestroyStats, println, registerDriver, registerDriver |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
Constructor Detail |
public KiddiePool()
Method Detail |
public PooledConnection getPooledConnection()
protected void addPooledConnection(PooledConnection con)
addPooledConnection
in class ConnectionPool
public PooledConnection getConnection()
public void flush()
flush
in class ConnectionPool
public int getFreeConnectionCount()
getFreeConnectionCount
in class ConnectionPool
NOTE: This method is declared public only to facilitate internal testing. This method is not part of the public API. Application code should not call this method.
protected void dumpConnections(java.lang.StringBuffer sb)
dumpConnections
in class ConnectionPool
sb
- string buffer to write messages to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |