rwaldhoff    2003/03/13 16:12:48

  Modified:    pool/src/java/org/apache/commons/pool/impl
                        StackKeyedObjectPool.java
  Log:
  apply Quinton McCombs's javadoc patch
  see <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17969>
  
  Revision  Changes    Path
  1.9       +14 -4     
jakarta-commons/pool/src/java/org/apache/commons/pool/impl/StackKeyedObjectPool.java
  
  Index: StackKeyedObjectPool.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/pool/src/java/org/apache/commons/pool/impl/StackKeyedObjectPool.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- StackKeyedObjectPool.java 5 Mar 2003 19:17:08 -0000       1.8
  +++ StackKeyedObjectPool.java 14 Mar 2003 00:12:48 -0000      1.9
  @@ -102,6 +102,8 @@
        * no factory. Clients must first populate the pool
        * using [EMAIL PROTECTED] #returnObject(java.lang.Object,java.lang.Object)}
        * before they can be [EMAIL PROTECTED] #borrowObject(java.lang.Object) 
borrowed}.
  +     *
  +     * @param max cap on the number of "sleeping" instances in the pool
        */
       public StackKeyedObjectPool(int max) {
           this((KeyedPoolableObjectFactory)null,max,DEFAULT_INIT_SLEEPING_CAPACITY);
  @@ -112,6 +114,10 @@
        * no factory. Clients must first populate the pool
        * using [EMAIL PROTECTED] #returnObject(java.lang.Object,java.lang.Object)}
        * before they can be [EMAIL PROTECTED] #borrowObject(java.lang.Object) 
borrowed}.
  +     *
  +     * @param max cap on the number of "sleeping" instances in the pool
  +     * @param init initial size of the pool (this specifies the size of the 
container,
  +     *             it does not cause the pool to be pre-populated.)
        */
       public StackKeyedObjectPool(int max, int init) {
           this((KeyedPoolableObjectFactory)null,max,init);
  @@ -348,9 +354,13 @@
       /** The initial capacity of each pool. */
       protected int _initSleepingCapacity = DEFAULT_INIT_SLEEPING_CAPACITY;
   
  +    /** Total number of object borrowed and not yet retuened for all pools */
       protected int _totActive = 0;
  +
  +    /** Total number of objects "sleeping" for all pools */
       protected int _totIdle = 0;
   
  +    /** Number of active objects borrowed and not yet returned by pool */
       protected HashMap _activeCount = null;
   
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to