|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.jdbc.StandardConnectionPoolInfo
Standard implementation of the ConnectionPoolInfo interface
ConnectionPoolInfo| Constructor Summary | |
StandardConnectionPoolInfo(ConnectionPoolConfig config,
int numActive,
int numIdle)
Create a new StandardConnectionPoolInfo object |
|
| Method Summary | |
int |
getActiveConnections()
Get the total number of active Connections |
ConnectionPoolConfig |
getConfig()
Get the ConnectionPool configuration object |
int |
getIdleConnections()
Get the total number of idle Connections |
String |
getTimestamp()
Get the time this ConnectionPoolInfo object was created |
int |
getTotalConnections()
Return the total number of Connections currently established by the ConnectionPool |
String |
toString()
Get a String representation of the Object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public StandardConnectionPoolInfo(ConnectionPoolConfig config,
int numActive,
int numIdle)
config - the ConnectionPool's configuration objectnumActive - the current number of active Connection objectsnumIdle - the current number of idle Connection objects| Method Detail |
public final String getTimestamp()
getTimestamp in interface ConnectionPoolInfopublic final ConnectionPoolConfig getConfig()
getConfig in interface ConnectionPoolInfopublic final int getTotalConnections()
getTotalConnections in interface ConnectionPoolInfopublic final int getActiveConnections()
getActiveConnections in interface ConnectionPoolInfopublic final int getIdleConnections()
getIdleConnections in interface ConnectionPoolInfopublic String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||