incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1092814 - /incubator/lcf/branches/CONNECTORS-32/framework/core/src/main/java/org/apache/manifoldcf/core/cachemanager/BaseDescription.java
Date Fri, 15 Apr 2011 21:19:28 GMT
Author: kwright
Date: Fri Apr 15 21:19:27 2011
New Revision: 1092814

URL: http://svn.apache.org/viewvc?rev=1092814&view=rev
Log:
Pull up the rest of CONNECTORS-181 from trunk.

Modified:
    incubator/lcf/branches/CONNECTORS-32/framework/core/src/main/java/org/apache/manifoldcf/core/cachemanager/BaseDescription.java

Modified: incubator/lcf/branches/CONNECTORS-32/framework/core/src/main/java/org/apache/manifoldcf/core/cachemanager/BaseDescription.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-32/framework/core/src/main/java/org/apache/manifoldcf/core/cachemanager/BaseDescription.java?rev=1092814&r1=1092813&r2=1092814&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-32/framework/core/src/main/java/org/apache/manifoldcf/core/cachemanager/BaseDescription.java
(original)
+++ incubator/lcf/branches/CONNECTORS-32/framework/core/src/main/java/org/apache/manifoldcf/core/cachemanager/BaseDescription.java
Fri Apr 15 21:19:27 2011
@@ -40,6 +40,12 @@ public abstract class BaseDescription im
       cacheClass = new LocalCacheClass(objectClassName);
   }
 
+  public BaseDescription(String objectClassName, int maxLRUCount)
+  {
+    if (objectClassName != null)
+      cacheClass = new LocalCacheClass(objectClassName,maxLRUCount);
+  }
+
   /** Get the object class for an object.  The object class is used to determine
   * the group of objects treated in the same LRU manner.
   * @return the newly created object's object class, or null if there is no
@@ -71,7 +77,14 @@ public abstract class BaseDescription im
 
     public LocalCacheClass(String objectClassName)
     {
+      this(objectClassName,-1);
+    }
+    
+    public LocalCacheClass(String objectClassName, int maxLRUCount)
+    {
       this.objectClassName = objectClassName;
+      if (maxLRUCount != -1)
+        this.maxLRUCount = new Integer(maxLRUCount);
     }
 
     /** Get the name of the object class.



Mime
View raw message