commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwaldh...@apache.org
Subject cvs commit: jakarta-commons/pool/src/java/org/apache/commons/pool/impl StackObjectPool.java
Date Thu, 13 Mar 2003 18:40:09 GMT
rwaldhoff    2003/03/13 10:40:09

  Modified:    pool/src/java/org/apache/commons/pool/impl
                        StackObjectPool.java
  Log:
  apply Quinton McCombs javadoc patch
  see <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17931>
  
  Revision  Changes    Path
  1.11      +14 -7     jakarta-commons/pool/src/java/org/apache/commons/pool/impl/StackObjectPool.java
  
  Index: StackObjectPool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/pool/src/java/org/apache/commons/pool/impl/StackObjectPool.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- StackObjectPool.java	7 Mar 2003 20:28:36 -0000	1.10
  +++ StackObjectPool.java	13 Mar 2003 18:40:09 -0000	1.11
  @@ -101,6 +101,8 @@
        * no factory. Clients must first populate the pool
        * using {@link #returnObject(java.lang.Object)}
        * before they can be {@link #borrowObject borrowed}.
  +     *
  +     * @param maxIdle cap on the number of "sleeping" instances in the pool
        */
       public StackObjectPool(int maxIdle) {
           this((PoolableObjectFactory)null,maxIdle,DEFAULT_INIT_SLEEPING_CAPACITY);
  @@ -111,6 +113,10 @@
        * no factory. Clients must first populate the pool
        * using {@link #returnObject(java.lang.Object)}
        * before they can be {@link #borrowObject borrowed}.
  +     *
  +     * @param maxIdle cap on the number of "sleeping" instances in the pool
  +     * @param initIdleCapacity initial size of the pool (this specifies the size of the
container,
  +     *             it does not cause the pool to be pre-populated.)
        */
       public StackObjectPool(int maxIdle, int initIdleCapacity) {
           this((PoolableObjectFactory)null,maxIdle,initIdleCapacity);
  @@ -132,7 +138,7 @@
        * capping the number of "sleeping" instances to <i>max</i>
        *
        * @param factory the {@link PoolableObjectFactory} used to populate the pool
  -     * @param max cap on the number of "sleeping" instances in the pool
  +     * @param maxIdle cap on the number of "sleeping" instances in the pool
        */
       public StackObjectPool(PoolableObjectFactory factory, int maxIdle) {
           this(factory,maxIdle,DEFAULT_INIT_SLEEPING_CAPACITY);
  @@ -147,7 +153,7 @@
        *
        * @param factory the {@link PoolableObjectFactory} used to populate the pool
        * @param maxIdle cap on the number of "sleeping" instances in the pool
  -     * @param init initial size of the pool (this specifies the size of the container,
  +     * @param initIdleCapacity initial size of the pool (this specifies the size of the
container,
        *             it does not cause the pool to be pre-populated.)
        */
       public StackObjectPool(PoolableObjectFactory factory, int maxIdle, int initIdleCapacity)
{
  @@ -191,7 +197,7 @@
                   }
               }
           }
  -        
  +
           boolean shouldDestroy = !success;
   
           synchronized(this) {
  @@ -283,5 +289,6 @@
       /** The cap on the number of "sleeping" instances in the pool. */
       protected int _maxSleeping = DEFAULT_MAX_SLEEPING;
   
  +    /** Number of object borrowed but not yet returned to the pool */
       protected int _numActive = 0;
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message