jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r503755 - in /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state: ItemStateReferenceCache.java MLRUItemStateCache.java
Date Mon, 05 Feb 2007 16:09:38 GMT
Author: stefan
Date: Mon Feb  5 08:09:37 2007
New Revision: 503755

URL: http://svn.apache.org/viewvc?view=rev&rev=503755
Log:
javadoc

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/ItemStateReferenceCache.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/MLRUItemStateCache.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/ItemStateReferenceCache.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/ItemStateReferenceCache.java?view=diff&rev=503755&r1=503754&r2=503755
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/ItemStateReferenceCache.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/ItemStateReferenceCache.java
Mon Feb  5 08:09:37 2007
@@ -63,7 +63,7 @@
 
     /**
      * Creates a new <code>ItemStateReferenceCache</code> that uses a
-     * <code>LRUItemStateCache</code> instance as internal secondary
+     * <code>MLRUItemStateCache</code> instance as internal secondary
      * cache.
      */
     public ItemStateReferenceCache(ItemStateCacheFactory cacheFactory) {

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/MLRUItemStateCache.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/MLRUItemStateCache.java?view=diff&rev=503755&r1=503754&r2=503755
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/MLRUItemStateCache.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/MLRUItemStateCache.java
Mon Feb  5 08:09:37 2007
@@ -16,7 +16,6 @@
  */
 package org.apache.jackrabbit.core.state;
 
-import org.apache.commons.collections.map.LRUMap;
 import org.apache.commons.collections.map.LinkedMap;
 import org.apache.jackrabbit.core.ItemId;
 import org.slf4j.Logger;
@@ -30,9 +29,13 @@
 
 /**
  * An <code>ItemStateCache</code> implementation that internally uses a
- * {@link LRUMap} to maintain a cache of <code>ItemState</code> objects. the
+ * {@link LinkedMap} to maintain a cache of <code>ItemState</code> objects. The
  * cache uses a rough estimate of the memory consumption of the cached item
- * states for calculating the maximum number of entries.
+ * states for calculating the maximum number of entries. The oldest entries
+ * are flushed once the cache size has exceeded a certain limit.
+ * <p/>
+ * TODO rename class to something more appropriate, e.g. FIFOItemSateCache since
+ * it doesn't use a LRU eviction policy anymore.
  */
 public class MLRUItemStateCache implements ItemStateCache, Cache {
     /** Logger instance */



Mime
View raw message