Class ReadOnlyCacheAccessByKey
java.lang.Object
eu.europa.esig.dss.tsl.cache.access.ReadOnlyCacheAccessByKey
- Direct Known Subclasses:
CacheAccessByKey
public class ReadOnlyCacheAccessByKey extends Object
The class prevents reading of other records but the one with defined key
-
Field Summary
Fields Modifier and Type Field Description protected DownloadCachedownloadCacheGlobal download Cacheprotected CacheKeykeyKey of the CacheEntryprotected ParsingCacheparsingCacheGlobal parsing Cacheprotected ValidationCachevalidationCacheGlobal validation Cache -
Constructor Summary
Constructors Constructor Description ReadOnlyCacheAccessByKey(CacheKey key, DownloadCache downloadCache, ParsingCache parsingCache, ValidationCache validationCache)Default constructor -
Method Summary
Modifier and Type Method Description DownloadCacheDTOgetDownloadReadOnlyResult()Returns the cached read-only download result DTOParsingCacheDTOgetParsingReadOnlyResult()Returns the cached read-only parsing result DTOValidationCacheDTOgetValidationReadOnlyResult()Returns the cached read-only validation result DTO
-
Field Details
-
key
Key of the CacheEntry -
downloadCache
Global download Cache -
parsingCache
Global parsing Cache -
validationCache
Global validation Cache
-
-
Constructor Details
-
ReadOnlyCacheAccessByKey
public ReadOnlyCacheAccessByKey(CacheKey key, DownloadCache downloadCache, ParsingCache parsingCache, ValidationCache validationCache)Default constructor- Parameters:
key-CacheKeyto readdownloadCache-DownloadCacheparsingCache-ParsingCachevalidationCache-ValidationCache
-
-
Method Details
-
getDownloadReadOnlyResult
Returns the cached read-only download result DTO- Returns:
DownloadCacheDTO
-
getParsingReadOnlyResult
Returns the cached read-only parsing result DTO- Returns:
ParsingCacheDTO
-
getValidationReadOnlyResult
Returns the cached read-only validation result DTO- Returns:
ValidationCacheDTO
-