Class ReadOnlyCacheAccessByKey
java.lang.Object
eu.europa.esig.dss.tsl.cache.access.ReadOnlyCacheAccessByKey
- Direct Known Subclasses:
CacheAccessByKey
The class prevents reading of other records but the one with defined key
-
Field Summary
Modifier and TypeFieldDescriptionprotected final DownloadCache
Global download Cacheprotected final CacheKey
Key of the CacheEntryprotected final ParsingCache
Global parsing Cacheprotected final ValidationCache
Global validation Cache -
Constructor Summary
ConstructorDescriptionReadOnlyCacheAccessByKey
(CacheKey key, DownloadCache downloadCache, ParsingCache parsingCache, ValidationCache validationCache) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionReturns the cached read-only download result DTOReturns the cached read-only parsing result DTOReturns 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
-CacheKey
to readdownloadCache
-DownloadCache
parsingCache
-ParsingCache
validationCache
-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
-