Class QRShippingLabelCache
java.lang.Object
org.tavall.couriers.api.cache.abstracts.AbstractCache<QRShippingLabelCache, ShippingLabelMetaDataEntity>
org.tavall.couriers.api.qr.cache.QRShippingLabelCache
- All Implemented Interfaces:
ICacheKey<QRShippingLabelCache>, ICacheValue<ShippingLabelMetaDataEntity>
@Component
public class QRShippingLabelCache
extends AbstractCache<QRShippingLabelCache, ShippingLabelMetaDataEntity>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfindByTrackingNumber(String trackingNumber) findByTrackingNumbers(Collection<String> trackingNumbers) findByUuid(String uuid) booleanisPrimed()voidvoidregisterShippingLabel(ShippingLabelMetaDataEntity labelData) voidRemoves the current shipping label from the global CacheMap and clears local references.voidremoveShippingLabel(String uuid) 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
-
QRShippingLabelCache
public QRShippingLabelCache()
-
-
Method Details
-
getCacheType
- Specified by:
getCacheTypein interfaceICacheKey<QRShippingLabelCache>- Overrides:
getCacheTypein classAbstractCache<QRShippingLabelCache, ShippingLabelMetaDataEntity>
-
getCacheDomain
- Specified by:
getCacheDomainin interfaceICacheKey<QRShippingLabelCache>- Overrides:
getCacheDomainin classAbstractCache<QRShippingLabelCache, ShippingLabelMetaDataEntity>
-
getSource
- Specified by:
getSourcein interfaceICacheKey<QRShippingLabelCache>- Overrides:
getSourcein classAbstractCache<QRShippingLabelCache, ShippingLabelMetaDataEntity>
-
getVersion
- Specified by:
getVersionin interfaceICacheKey<QRShippingLabelCache>- Overrides:
getVersionin classAbstractCache<QRShippingLabelCache, ShippingLabelMetaDataEntity>
-
registerShippingLabel
-
primeCache
-
findByTrackingNumber
-
findByTrackingNumbers
-
findByUuid
-
getAllLabels
-
isPrimed
public boolean isPrimed() -
removeShippingLabel
public void removeShippingLabel()Removes the current shipping label from the global CacheMap and clears local references. -
getLabelCacheKey
-
containsLabelKey
public boolean containsLabelKey() -
removeShippingLabel
-