|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the connection allocator. A connection allocator is an integral part of a logical database implementation. It manages a pool of database connections.
Method Summary | |
DBConnection |
allocate()
Allocate a connection either from the managed pool or create a new. |
void |
drop(DBConnection dbConnection)
Used to drop a connection from the pool. |
void |
dropAllNow()
Drop all the connection in the pool immediately. |
int |
getActiveCount()
Return the number of currently active (allocated) connections. |
int |
getMaxCount()
Return the maximum number of connections active at one time. |
java.util.Date |
getMaxCountDate()
Return the time when the maximum connection count occured. |
long |
getRequestCount()
Return the number of database requests made on any of the connection allocated from this managed pool. |
void |
release(DBConnection dbConnection)
Return a connection to the pool. |
void |
resetMaxCount()
Reset the maximum connection count and date. |
Method Detail |
public DBConnection allocate() throws java.sql.SQLException
public void release(DBConnection dbConnection)
dbConnection
- The connection object to return.public void drop(DBConnection dbConnection)
dbConnection
- The connection object to drop.public void dropAllNow()
public int getActiveCount()
public int getMaxCount()
public java.util.Date getMaxCountDate()
Date
when the maximum connection
count occured.public void resetMaxCount()
public long getRequestCount()
DBQuery
and DBTransaction
objects
to count requests.
|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |