Author: sandymac
Date: Wed Mar 22 19:56:22 2006
New Revision: 388017
URL: http://svn.apache.org/viewcvs?rev=388017&view=rev
Log:
Renamed maxActive and maxIdle to maxActivePerKey and maxIdlePerKey properties
in CompositeKeyedObjectPoolFactory so their name fit thier function.
Modified:
jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/composite/CompositeKeyedObjectPoolFactory.java
jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/composite/CompositeObjectPoolFactory.java
Modified:
jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/composite/CompositeKeyedObjectPoolFactory.java
URL:
http://svn.apache.org/viewcvs/jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/composite/CompositeKeyedObjectPoolFactory.java?rev=388017&r1=388016&r2=388017&view=diff
==============================================================================
---
jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/composite/CompositeKeyedObjectPoolFactory.java
(original)
+++
jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/composite/CompositeKeyedObjectPoolFactory.java
Wed Mar 22 19:56:22 2006
@@ -236,44 +236,46 @@
}
/**
- * Maximum number of idle objects in the pool.
+ * Maximum number of idle objects in the pool for each key.
* A negative value means unlimited.
* Zero means the pool will behave like a factory.
* A positve value limits the number of idle objects.
*
- * @return a non-negative value is the maximum number of idle objects in
the pool, else unlimited.
+ * @return a non-negative value is the maximum number of idle objects in
the pool for each key, else unlimited.
*/
- public int getMaxIdle() {
+ public int getMaxIdlePerKey() {
return factory.getMaxIdle();
}
/**
- * Set the maximum number of idle objects in the pool.
+ * Set the maximum number of idle objects in the pool for each key.
* A negative value means unlimited.
* Zero means the pool will behave like a factory.
* A positve value limits the number of idle objects.
*
- * @param maxIdle a non-negative value is the maximum number of idle
objects in the pool, else unlimited.
+ * @param maxIdle a non-negative value is the maximum number of idle
objects in the pool for each key, else unlimited.
*/
- public void setMaxIdle(final int maxIdle) {
+ public void setMaxIdlePerKey(final int maxIdle) {
factory.setMaxIdle(maxIdle);
}
/**
- * Maximum number of active objects borrowed from this pool. A
non-positive value means there is no limit.
+ * Maximum number of active objects borrowed from this pool for each key.
+ * A non-positive value means there is no limit.
*
- * @return if > 0 the the maximum number of active objects else
unlimited.
+ * @return if > 0 the the maximum number of active objects for each key
else unlimited.
*/
- public int getMaxActive() {
+ public int getMaxActivePerKey() {
return factory.getMaxActive();
}
/**
- * Set the maximum active objects borrowed from this pool. Any
non-positive value means there is no limit.
+ * Set the maximum number of active objects borrowed from this pool for
each key.
+ * Any non-positive value means there is no limit.
*
- * @param maxActive the limit of active objects from the pool or <= 0
for unlimited.
+ * @param maxActive the limit for each key of active objects from the pool
or <= 0 for unlimited.
*/
- public void setMaxActive(final int maxActive) {
+ public void setMaxActivePerKey(final int maxActive) {
factory.setMaxActive(maxActive);
}
Modified:
jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/composite/CompositeObjectPoolFactory.java
URL:
http://svn.apache.org/viewcvs/jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/composite/CompositeObjectPoolFactory.java?rev=388017&r1=388016&r2=388017&view=diff
==============================================================================
---
jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/composite/CompositeObjectPoolFactory.java
(original)
+++
jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/composite/CompositeObjectPoolFactory.java
Wed Mar 22 19:56:22 2006
@@ -526,7 +526,7 @@
}
/**
- * Set the maximum objects associated with this pool. Any non-positive
value means there is no limit.
+ * Set the maximum number of objects associated with this pool. Any
non-positive value means there is no limit.
*
* @param maxActive the limit of active and idle objects in the pool or
<= 0 for no limit.
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]