|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.base.database.ConnectionPool
public class ConnectionPool
Database connection pool implementation.
Two Jive properties control database-specific features:
| Constructor Summary | |
|---|---|
ConnectionPool(java.lang.String driver,
java.lang.String serverURL,
java.lang.String username,
java.lang.String password,
int minCon,
int maxCon,
double conTimeout)
|
|
| Method Summary | |
|---|---|
void |
destroy()
|
void |
freeConnection()
Notifies threads waiting on monitor for open connections that a connection is now available. |
int |
getActiveConnectionCount()
Returns the number of open connections that are actively in use. |
java.sql.Connection |
getConnection()
|
int |
getSize()
Returns the current number of connections in the pool. |
void |
run()
Housekeeping thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionPool(java.lang.String driver,
java.lang.String serverURL,
java.lang.String username,
java.lang.String password,
int minCon,
int maxCon,
double conTimeout)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void freeConnection()
public void destroy()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getActiveConnectionCount()
public int getSize()
public void run()
run in interface java.lang.Runnable
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||