Author: doogie
Date: Wed Mar 31 06:03:41 2010
New Revision: 929390
URL:
http://svn.apache.org/viewvc?rev=929390&view=revLog:
Add getMaxInMemory method to expose the internal variable.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/UtilCache.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/UtilCache.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/UtilCache.java?rev=929390&r1=929389&r2=929390&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/UtilCache.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/UtilCache.java Wed Mar 31 06:03:41 2010
@@ -457,6 +457,10 @@ public class UtilCache<K, V> implements
return maxSize;
}
+ public int getMaxInMemory() {
+ return maxInMemory;
+ }
+
/** Sets the expire time for the cache elements.
* If 0, elements never expire.
* @param expireTime The expire time for the cache elements