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
FieldsModifier and TypeFieldDescriptionprotected final DownloadCacheGlobal download Cacheprotected final CacheKeyKey of the CacheEntryprotected final ParsingCacheGlobal parsing Cacheprotected final ValidationCacheGlobal validation Cache -
Constructor Summary
ConstructorsConstructorDescriptionReadOnlyCacheAccessByKey(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-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
-