[jboss-cvs] JBossCache/src/org/jboss/cache/eviction ...

Manik Surtani manik at jboss.org
Mon Mar 26 07:11:24 EDT 2007


  User: msurtani
  Date: 07/03/26 07:11:24

  Modified:    src/org/jboss/cache/eviction  EvictionTimerTask.java
  Log:
  Patched to work under jdk 1.4 until JBBUILD-350 is fixed
  
  Revision  Changes    Path
  1.14      +8 -7      JBossCache/src/org/jboss/cache/eviction/EvictionTimerTask.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: EvictionTimerTask.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/eviction/EvictionTimerTask.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -b -r1.13 -r1.14
  --- EvictionTimerTask.java	2 Feb 2007 14:46:09 -0000	1.13
  +++ EvictionTimerTask.java	26 Mar 2007 11:11:24 -0000	1.14
  @@ -16,18 +16,16 @@
   
   import java.util.Collections;
   import java.util.HashSet;
  -import java.util.Iterator;
   import java.util.Set;
   import java.util.Timer;
   import java.util.TimerTask;
  -import java.util.concurrent.atomic.AtomicInteger;
   
   /**
    * Timer threads to do periodic node clean up by running the eviction policy.
    *
    * @author Ben Wang 2-2004
    * @author Daniel Huang (dhuang at jboss.org)
  - * @version $Revision: 1.13 $
  + * @version $Revision: 1.14 $
    */
   public class EvictionTimerTask
   {
  @@ -35,7 +33,8 @@
   
      private final Set<Region> processedRegions;
      private int wakeupIntervalSeconds;
  -   private static AtomicInteger tcount = new AtomicInteger();
  +   // Only needed once JBBUILD-350 is fixed and we use the overloaded constructor for Timer below.
  +   //private static AtomicInteger tcount = new AtomicInteger();
   
      public EvictionTimerTask()
      {
  @@ -85,7 +84,9 @@
   
         public void cacheStarted(CacheSPI cache)
         {
  -         evictionThread = new Timer("EvictionTimer-" + tcount.getAndIncrement(), true);
  +         //evictionThread = new Timer("EvictionTimer-" + tcount.getAndIncrement(), true);
  +         // use an older JDK 1.4 compat constructor until JBBUILD-350 is fixed.
  +         evictionThread = new Timer(true);
            TimerTask tt = new TimerTask()
            {
               /**
  
  
  



More information about the jboss-cvs-commits mailing list