Class BaseDescription.LocalCacheClass
- java.lang.Object
-
- org.apache.manifoldcf.core.cachemanager.BaseDescription.LocalCacheClass
-
- All Implemented Interfaces:
ICacheClass
- Enclosing class:
- BaseDescription
protected class BaseDescription.LocalCacheClass extends java.lang.Object implements ICacheClass
This is a cache class implementation that gets expiration and LRU info from .ini variables.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.IntegermaxLRUCountprotected java.lang.StringobjectClassName-
Fields inherited from interface org.apache.manifoldcf.core.interfaces.ICacheClass
_rcsid
-
-
Constructor Summary
Constructors Constructor Description LocalCacheClass(java.lang.String objectClassName)LocalCacheClass(java.lang.String objectClassName, java.lang.Integer maxLRUCount)LocalCacheClass(java.lang.String objectClassName, IThreadContext threadContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClassName()Get the name of the object class.intgetMaxLRUCount()Get the maximum LRU count of the object class.
-
-
-
Constructor Detail
-
LocalCacheClass
public LocalCacheClass(java.lang.String objectClassName, IThreadContext threadContext) throws ManifoldCFException- Throws:
ManifoldCFException
-
LocalCacheClass
public LocalCacheClass(java.lang.String objectClassName)
-
LocalCacheClass
public LocalCacheClass(java.lang.String objectClassName, java.lang.Integer maxLRUCount)
-
-
Method Detail
-
getClassName
public java.lang.String getClassName()
Get the name of the object class. This determines the set of objects that are treated in the same LRU pool.- Specified by:
getClassNamein interfaceICacheClass- Returns:
- the class name.
-
getMaxLRUCount
public int getMaxLRUCount()
Get the maximum LRU count of the object class.- Specified by:
getMaxLRUCountin interfaceICacheClass- Returns:
- the maximum number of the objects of the particular class allowed.
-
-