|
EAF 7.6 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionAllocator
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. |
java.lang.String |
getDatabaseName()
|
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 |
---|
DBConnection allocate() throws java.sql.SQLException
java.sql.SQLException
- if a SQL error occures.void release(DBConnection dbConnection)
dbConnection
- The connection object to return.void drop(DBConnection dbConnection)
dbConnection
- The connection object to drop.void dropAllNow()
int getActiveCount()
int getMaxCount()
java.util.Date getMaxCountDate()
Date
when the maximum connection
count occured.void resetMaxCount()
long getRequestCount()
DBQuery
and DBTransaction
objects
to count requests.
java.lang.String getDatabaseName()
|
EAF 7.6 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |