java.lang.Object
eu.europa.esig.dss.tsl.cache.CacheCleaner
The class is used to clean outdated cache entries
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor instantiating object with default configuration and null file loader -
Method Summary
Modifier and TypeMethodDescriptionvoidclean(CacheAccessByKey cacheAccess) Cleans the given entryvoidsetCleanFileSystem(boolean cleanFileSystem) Setter for cleanFileSystem propertyvoidsetCleanMemory(boolean cleanMemory) Setter for cleanMemory propertyvoidsetDSSFileLoader(eu.europa.esig.dss.spi.client.http.DSSCacheFileLoader dssFileLoader) Sets the DSSFileLoader that will be used for file removing
-
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(eu.europa.esig.dss.spi.client.http.DSSCacheFileLoader dssFileLoader) Sets the DSSFileLoader that will be used for file removing- Parameters:
dssFileLoader-DSSCacheFileLoader
-
clean
Cleans the given entry- Parameters:
cacheAccess-CacheAccessByKey
-