Class ReadOnlyCacheAccess
java.lang.Object
eu.europa.esig.dss.tsl.cache.access.ReadOnlyCacheAccess
- Direct Known Subclasses:
SynchronizerCacheAccess
public class ReadOnlyCacheAccess extends Object
Reads the relevant cache by the given key
-
Field Summary
Fields Modifier and Type Field Description protected DownloadCache
downloadCache
Global download Cacheprotected ParsingCache
parsingCache
Global parsing Cacheprotected ValidationCache
validationCache
Global validation Cache -
Constructor Summary
Constructors Constructor Description ReadOnlyCacheAccess(DownloadCache fileCache, ParsingCache parsingCache, ValidationCache validationCache)
Default constructor -
Method Summary
Modifier and Type Method Description Set<CacheKey>
getAllCacheKeys()
This method returns all found keys in any cacheDownloadCacheDTO
getDownloadCacheDTO(CacheKey key)
Returns download cache DTO resultParsingCacheDTO
getParsingCacheDTO(CacheKey key)
Returns download cache DTO resultValidationCacheDTO
getValidationCacheDTO(CacheKey key)
Returns download cache DTO result
-
Field Details
-
downloadCache
Global download Cache -
parsingCache
Global parsing Cache -
validationCache
Global validation Cache
-
-
Constructor Details
-
ReadOnlyCacheAccess
public ReadOnlyCacheAccess(DownloadCache fileCache, ParsingCache parsingCache, ValidationCache validationCache)Default constructor- Parameters:
fileCache
-DownloadCache
parsingCache
-ParsingCache
validationCache
-ValidationCache
-
-
Method Details
-
getDownloadCacheDTO
Returns download cache DTO result- Parameters:
key
-CacheKey
to extract download result for- Returns:
DownloadCacheDTO
-
getParsingCacheDTO
Returns download cache DTO result- Parameters:
key
-CacheKey
to extract download result for- Returns:
DownloadCacheDTO
-
getValidationCacheDTO
Returns download cache DTO result- Parameters:
key
-CacheKey
to extract download result for- Returns:
DownloadCacheDTO
-
getAllCacheKeys
This method returns all found keys in any cache- Returns:
- a set of cache keys
-