Class QRCodeCache
java.lang.Object
org.tavall.couriers.api.cache.abstracts.AbstractCache<QRCodeCache, QRMetaData>
org.tavall.couriers.api.qr.cache.QRCodeCache
- All Implemented Interfaces:
ICacheKey<QRCodeCache>, ICacheValue<QRMetaData>
QRCodeCache relies on preview features of the Java platform:
QRCodeCacherefers to one or more preview APIs:FailedException,TimeoutException.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QRCodeCacheget()voidregisterQRCode(QRMetaData qrData) voidstatic <T> TrunAsync(QRMetaData initialData, Callable<T> task) 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
-
Field Details
-
CURRENT
-
-
Constructor Details
-
QRCodeCache
public QRCodeCache()
-
-
Method Details
-
get
-
runAsync
public static <T> T runAsync(QRMetaData initialData, Callable<T> task) throws InterruptedException, StructuredTaskScope.TimeoutExceptionPREVIEW, StructuredTaskScope.FailedExceptionPREVIEW, Exception -
getCacheType
- Specified by:
getCacheTypein interfaceICacheKey<QRCodeCache>- Overrides:
getCacheTypein classAbstractCache<QRCodeCache, QRMetaData>
-
getCacheDomain
- Specified by:
getCacheDomainin interfaceICacheKey<QRCodeCache>- Overrides:
getCacheDomainin classAbstractCache<QRCodeCache, QRMetaData>
-
getSource
- Specified by:
getSourcein interfaceICacheKey<QRCodeCache>- Overrides:
getSourcein classAbstractCache<QRCodeCache, QRMetaData>
-
getVersion
- Specified by:
getVersionin interfaceICacheKey<QRCodeCache>- Overrides:
getVersionin classAbstractCache<QRCodeCache, QRMetaData>
-
registerQRCode
-
removeQRCode
public void removeQRCode() -
getQRCodeCacheKey
-
QRCodeCachewhen preview features are enabled.