Class ReadOnlyCacheAccess
java.lang.Object
eu.europa.esig.dss.tsl.cache.access.ReadOnlyCacheAccess
- Direct Known Subclasses:
SynchronizerCacheAccess
Reads the relevant cache by the given key
-
Field Summary
Modifier and TypeFieldDescriptionprotected final DownloadCache
Global download Cacheprotected final ParsingCache
Global parsing Cacheprotected final ValidationCache
Global validation Cache -
Constructor Summary
ConstructorDescriptionReadOnlyCacheAccess
(DownloadCache fileCache, ParsingCache parsingCache, ValidationCache validationCache) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionThis method returns all found keys in any cacheReturns download cache DTO resultReturns download cache DTO resultReturns 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
-