Return-Path: Delivered-To: apmail-incubator-connectors-commits-archive@minotaur.apache.org Received: (qmail 58013 invoked from network); 15 Apr 2011 21:19:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Apr 2011 21:19:51 -0000 Received: (qmail 68340 invoked by uid 500); 15 Apr 2011 21:19:51 -0000 Delivered-To: apmail-incubator-connectors-commits-archive@incubator.apache.org Received: (qmail 68293 invoked by uid 500); 15 Apr 2011 21:19:51 -0000 Mailing-List: contact connectors-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: connectors-dev@incubator.apache.org Delivered-To: mailing list connectors-commits@incubator.apache.org Received: (qmail 68285 invoked by uid 99); 15 Apr 2011 21:19:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Apr 2011 21:19:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Apr 2011 21:19:49 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3C55E23888C2; Fri, 15 Apr 2011 21:19:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: connectors-commits@incubator.apache.org From: kwright@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110415211928.3C55E23888C2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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.