|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.jdbc.StandardConnectionPoolConfig
Standard implementation of the ConnectionPoolConfig Object
ConnectionPoolConfig| Constructor Summary | |
StandardConnectionPoolConfig(String poolName,
int initialCapacity,
int minimumCapacity,
int maximumCapacity,
int poolIncrement,
boolean allowShrinking,
int shrinkPeriod,
int refreshPeriod,
String poolUser,
String poolPassword,
ConnectionConfig connConfig)
Create a new StandardConnectionPoolConfig object |
|
| Method Summary | |
boolean |
allowShrinking()
Determine if Shrinking of Connections is allowed |
ConnectionConfig |
getConnectionConfig()
Get the ConnectionConfig object |
int |
getIncrement()
Get the increment of the ConnectionPool |
int |
getInitial()
Get the initialCapacity of the ConnectionPool |
int |
getMaximum()
Get the maximum capacity of the ConnectionPool |
int |
getMinimum()
Get the minimum capacity of the ConnectionPool |
String |
getName()
Get the name of the ConnectionPool |
String |
getPoolPassword()
Get the ConnectionPool's Password |
String |
getPoolUser()
Get the ConnectionPool's User |
int |
getRefreshPeriod()
Get the refresh period (in Minutes) |
int |
getShrinkPeriod()
Get the shrink period (in Minutes) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StandardConnectionPoolConfig(String poolName,
int initialCapacity,
int minimumCapacity,
int maximumCapacity,
int poolIncrement,
boolean allowShrinking,
int shrinkPeriod,
int refreshPeriod,
String poolUser,
String poolPassword,
ConnectionConfig connConfig)
poolName - the name of the ConnectionPoolinitialCapacity - the initial capacity of the poolminimumCapacity - the minimum capacity of the poolmaximumCapacity - the maximum capacity of the poolpoolIncrement - the increment at which new connections are createdallowShrinking - flag to enable/disable shrinking of inactive connectionsshrinkPeriod - the shrink period (in minutes)refreshPeriod - the refresh period (in minutes)poolUser - the ConnectionPool's userpoolPassword - the ConnectionPool's passwordconnConfig - the ConnectionConfig object containing all Connection
configuration properties| Method Detail |
public final String getName()
getName in interface ConnectionPoolConfigpublic final int getInitial()
getInitial in interface ConnectionPoolConfigpublic final int getMinimum()
getMinimum in interface ConnectionPoolConfigpublic final int getMaximum()
getMaximum in interface ConnectionPoolConfigpublic final int getIncrement()
getIncrement in interface ConnectionPoolConfigpublic final boolean allowShrinking()
allowShrinking in interface ConnectionPoolConfigpublic final int getShrinkPeriod()
getShrinkPeriod in interface ConnectionPoolConfigpublic final int getRefreshPeriod()
getRefreshPeriod in interface ConnectionPoolConfigpublic String getPoolUser()
getPoolUser in interface ConnectionPoolConfigpublic String getPoolPassword()
getPoolPassword in interface ConnectionPoolConfigpublic final ConnectionConfig getConnectionConfig()
getConnectionConfig in interface ConnectionPoolConfig
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||