Class ScanCacheService
java.lang.Object
org.tavall.couriers.api.cache.abstracts.AbstractCache<ScanCacheService, ScanResponse>
org.tavall.couriers.api.qr.scan.cache.ScanCacheService
- All Implemented Interfaces:
ICacheKey<ScanCacheService>, ICacheValue<ScanResponse>
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a ScanCacheService fromAbstractCachewith a 5-minute default TTL. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetRecentResponses(int limit) voidregisterScanResponse(ScanResponse scanResponse) Methods inherited from class AbstractCache
createKey, createKey, createKey, createKey, createKey, createKey, createKey, createKey, createKeyMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ICacheKey
equals, getRawCacheKey, hashCode, toStringMethods inherited from interface ICacheValue
getValue
-
Constructor Details
-
ScanCacheService
public ScanCacheService()Constructs a ScanCacheService fromAbstractCachewith a 5-minute default TTL.
-
-
Method Details
-
getCacheType
- Specified by:
getCacheTypein interfaceICacheKey<ScanCacheService>- Overrides:
getCacheTypein classAbstractCache<ScanCacheService, ScanResponse>
-
getCacheDomain
- Specified by:
getCacheDomainin interfaceICacheKey<ScanCacheService>- Overrides:
getCacheDomainin classAbstractCache<ScanCacheService, ScanResponse>
-
getSource
- Specified by:
getSourcein interfaceICacheKey<ScanCacheService>- Overrides:
getSourcein classAbstractCache<ScanCacheService, ScanResponse>
-
getVersion
- Specified by:
getVersionin interfaceICacheKey<ScanCacheService>- Overrides:
getVersionin classAbstractCache<ScanCacheService, ScanResponse>
-
registerScanResponse
-
getRecentResponses
-
getScanCacheKey
-
containsScanKey
public boolean containsScanKey()
-