Class CacheCleaner

java.lang.Object
eu.europa.esig.dss.tsl.cache.CacheCleaner

public class CacheCleaner extends Object
The class is used to clean outdated cache entries
  • Constructor Details

    • CacheCleaner

      public CacheCleaner()
      Default constructor instantiating object with default configuration and null file loader
  • Method Details

    • setCleanMemory

      public void setCleanMemory(boolean cleanMemory)
      Setter for cleanMemory property
      Parameters:
      cleanMemory - if TRUE, removes TO_BE_DELETED entries from in memory maps
    • setCleanFileSystem

      public void setCleanFileSystem(boolean cleanFileSystem)
      Setter for cleanFileSystem property
      Parameters:
      cleanFileSystem - if TRUE, removes TO_BE_DELETED entries from file system
    • setDSSFileLoader

      public void setDSSFileLoader(DSSFileLoader dssFileLoader)
      Sets the DSSFileLoader that will be used for file removing
      Parameters:
      dssFileLoader - DSSFileLoader
    • clean

      public void clean(CacheAccessByKey cacheAccess)
      Cleans the given entry
      Parameters:
      cacheAccess - CacheAccessByKey