Class CacheCleaner


  • public class CacheCleaner
    extends Object
    Class responsible for keeping file cache under specified size.
    Author:
    Frantisek Post
    • Field Detail

      • maximumCacheSize

        protected long maximumCacheSize
    • Constructor Detail

      • CacheCleaner

        protected CacheCleaner()
    • Method Detail

      • runInternal

        protected void runInternal()
      • getRootDir

        protected org.openide.filesystems.FileObject getRootDir()
      • run

        public void run()
        Starts the CacheCleaner
      • getInstance

        public static CacheCleaner getInstance()
        Gets instance
        Returns:
        instance
      • setMaximumCacheSize

        public void setMaximumCacheSize​(long maximumCacheSize)
        Set the maximum file cache size
        Parameters:
        maximumCacheSize - maximum file cache size
      • isUnlimited

        public boolean isUnlimited()
        Returns true if size is unlimited, otherwise {
        Returns: