commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: jakarta-commons/dbcp/src/java/org/apache/commons/dbcp AbandonedObjectPool.java
Date Sat, 01 May 2004 12:42:19 GMT
dirkv       2004/05/01 05:42:19

  Modified:    dbcp/src/java/org/apache/commons/dbcp
                        AbandonedObjectPool.java
  Log:
  AbandonedObjectPool can pool AbandonedTrace objects, not only PoolableConnections
  
  Revision  Changes    Path
  1.16      +4 -5      jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/AbandonedObjectPool.java
  
  Index: AbandonedObjectPool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/AbandonedObjectPool.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- AbandonedObjectPool.java	25 Apr 2004 10:36:24 -0000	1.15
  +++ AbandonedObjectPool.java	1 May 2004 12:42:19 -0000	1.16
  @@ -111,7 +111,7 @@
           }
           super.invalidateObject(obj);        
       }
  -    
  +
       /**
        * Recover abandoned db connections which have been idle
        * greater than the removeAbandonedTimeout.
  @@ -124,7 +124,7 @@
           synchronized(trace) {
               Iterator it = trace.iterator();
               while (it.hasNext()) {
  -                PoolableConnection pc = (PoolableConnection)it.next();
  +                AbandonedTrace pc = (AbandonedTrace)it.next();
                   if (pc.getLastUsed() > timeout) {
                       continue;
                   }
  @@ -137,7 +137,7 @@
           // Now remove the abandoned connections
           Iterator it = remove.iterator();
           while (it.hasNext()) {
  -            PoolableConnection pc = (PoolableConnection)it.next();
  +            AbandonedTrace pc = (AbandonedTrace)it.next();
               if (config.getLogAbandoned()) {
                   pc.printStackTrace();
               }             
  @@ -148,5 +148,4 @@
               }             
           }
       }
  -
   }
  
  
  

---------------------------------------------------------------------
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