Class 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.Integer maxLRUCount  
      protected java.lang.String objectClassName  
      • Fields inherited from interface org.apache.manifoldcf.core.interfaces.ICacheClass

        _rcsid
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getClassName()
      Get the name of the object class.
      int getMaxLRUCount()
      Get the maximum LRU count of the object class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • objectClassName

        protected java.lang.String objectClassName
      • maxLRUCount

        protected java.lang.Integer maxLRUCount
    • Constructor Detail

      • 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:
        getClassName in interface ICacheClass
        Returns:
        the class name.
      • getMaxLRUCount

        public int getMaxLRUCount()
        Get the maximum LRU count of the object class.
        Specified by:
        getMaxLRUCount in interface ICacheClass
        Returns:
        the maximum number of the objects of the particular class allowed.