You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-dev@jakarta.apache.org by hc...@apache.org on 2005/01/29 14:31:44 UTC

cvs commit: jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/soft SoftRefFileCache.java

hchar       2005/01/29 05:31:44

  Modified:    sandbox/yajcache/src/org/apache/jcs/yajcache/soft
                        SoftRefFileCache.java
  Log:
  better name
  
  Revision  Changes    Path
  1.7       +5 -4      jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/soft/SoftRefFileCache.java
  
  Index: SoftRefFileCache.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/soft/SoftRefFileCache.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- SoftRefFileCache.java	29 Jan 2005 12:37:01 -0000	1.6
  +++ SoftRefFileCache.java	29 Jan 2005 13:31:44 -0000	1.7
  @@ -69,7 +69,7 @@
       private PerCacheConfig config;
      
       private final @NonNullable KeyedRefCollector<String> collector;
  -    private final IKeyedReadWriteLock<String> krwl = new KeyedReadWriteLock<String>();
  +    private final IKeyedReadWriteLock<String> keyedRWLock = new KeyedReadWriteLock<String>();
       
   //    private final @NonNullable ConcurrentMap<String, CacheOp[]> synMap = 
   //            new ConcurrentHashMap<String, CacheOp[]>();
  @@ -152,7 +152,7 @@
           collector.run();
           if (debug)
               this.countGet.incrementAndGet();
  -        Lock lock = this.krwl.readLock(key);
  +        Lock lock = this.keyedRWLock.readLock(key);
           lock.lock();
           try {
               return doGet(key);
  @@ -263,7 +263,7 @@
           
           if (debug)
               this.countPut.incrementAndGet();
  -        Lock lock = this.krwl.writeLock(key);
  +        Lock lock = this.keyedRWLock.writeLock(key);
           lock.lock();
           try {
               return doPut(key, value);
  @@ -348,7 +348,7 @@
           
           if (debug)
               this.countRemove.incrementAndGet();
  -        Lock lock = this.krwl.writeLock(key);
  +        Lock lock = this.keyedRWLock.writeLock(key);
           lock.lock();
           try {
               return doRemove(key);
  @@ -481,6 +481,7 @@
               .append("\n").append("countPutWriteFile", this.countPutWriteFile)
               .append("\n").append("countRemove", this.countRemove)
               .append("\n").append("collector", this.collector)
  +            .append("\n").append("keyedRWLock", this.keyedRWLock)
               .toString();
       }
   }
  
  
  

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