Class CacheableKernelModel

  • All Implemented Interfaces:
    ICacheableModel
    Direct Known Subclasses:
    MicroModel

    public class CacheableKernelModel
    extends java.lang.Object
    implements ICacheableModel
    Base class for cacheable kernel model.
    • Field Detail

      • lastmodified

        protected long lastmodified
        The last modified date.
      • lastchecked

        protected long lastchecked
        The last check date.
      • modelinfo

        protected IModelInfo modelinfo
        The model info.
    • Constructor Detail

      • CacheableKernelModel

        public CacheableKernelModel​(IModelInfo modelinfo)
        Create a new model.
    • Method Detail

      • getModelInfo

        public IModelInfo getModelInfo()
        Get the modelinfo.
        Returns:
        the modelinfo.
      • getLastModified

        public long getLastModified()
        Get the lastmodified.
        Specified by:
        getLastModified in interface ICacheableModel
        Returns:
        the lastmodified.
      • setLastModified

        public void setLastModified​(long lastmodified)
        Set the lastmodified.
        Parameters:
        lastmodified - The lastmodified to set.
      • getLastChecked

        public long getLastChecked()
        Get the lastchecked.
        Specified by:
        getLastChecked in interface ICacheableModel
        Returns:
        the lastchecked.
      • setLastChecked

        public void setLastChecked​(long lastchecked)
        Set the lastchecked.
        Specified by:
        setLastChecked in interface ICacheableModel
        Parameters:
        lastchecked - The lastchecked to set.
      • getFilename

        public java.lang.String getFilename()
        Get the filename.
        Specified by:
        getFilename in interface ICacheableModel
        Returns:
        The filename.