Author: tv
Date: Sat Nov 10 16:51:14 2012
New Revision: 1407846

URL: http://svn.apache.org/viewvc?rev=1407846&view=rev
Log:
JCS-75: CompositeCache: Add method to get auxiliary caches, changed visibility 
of isExpired() to protected.

Modified:
    commons/proper/jcs/trunk/src/changes/changes.xml
    
commons/proper/jcs/trunk/src/java/org/apache/jcs/engine/control/CompositeCache.java

Modified: commons/proper/jcs/trunk/src/changes/changes.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/changes/changes.xml?rev=1407846&r1=1407845&r2=1407846&view=diff
==============================================================================
--- commons/proper/jcs/trunk/src/changes/changes.xml (original)
+++ commons/proper/jcs/trunk/src/changes/changes.xml Sat Nov 10 16:51:14 2012
@@ -20,6 +20,10 @@
        </properties>
        <body>
                <release version="2.0" date="unreleased" description="JDK 1.5 
based major release">
+            <action dev="tv" type="update" issue="JCS-75" due-to="Chiat Lam">
+                CompositeCache: Add method to get auxiliary caches, changed
+                visibility of isExpired() to protected.
+            </action>
             <action dev="tv" type="fix" issue="JCS-73" due-to="Alexander 
Kleymenov">
                 Concurrent cache access causes values loss.
             </action>

Modified: 
commons/proper/jcs/trunk/src/java/org/apache/jcs/engine/control/CompositeCache.java
URL: 
http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/java/org/apache/jcs/engine/control/CompositeCache.java?rev=1407846&r1=1407845&r2=1407846&view=diff
==============================================================================
--- 
commons/proper/jcs/trunk/src/java/org/apache/jcs/engine/control/CompositeCache.java
 (original)
+++ 
commons/proper/jcs/trunk/src/java/org/apache/jcs/engine/control/CompositeCache.java
 Sat Nov 10 16:51:14 2012
@@ -163,6 +163,16 @@ public class CompositeCache<K extends Se
     }
 
     /**
+     * Get the list of auxiliary caches for this region.
+     * <p>
+     * @return an array of auxiliary caches, may be empty, never null
+     */
+    public AuxiliaryCache<K, V>[] getAuxCaches()
+    {
+        return this.auxCaches;
+    }
+
+    /**
      * Standard update method.
      * <p>
      * @param ce
@@ -1036,7 +1046,7 @@ public class CompositeCache<K extends Se
      * @param element
      * @return true if the element is expired, else false.
      */
-    private boolean isExpired( ICacheElement<K, V> element )
+    protected boolean isExpired( ICacheElement<K, V> element )
     {
         try
         {


Reply via email to