Class RouteCacheService
java.lang.Object
org.tavall.couriers.api.cache.abstracts.AbstractCache<RouteCacheService, DeliveryRouteEntity>
org.tavall.couriers.api.route.cache.RouteCacheService
- All Implemented Interfaces:
ICacheKey<RouteCacheService>, ICacheValue<DeliveryRouteEntity>
@Component
public class RouteCacheService
extends AbstractCache<RouteCacheService, DeliveryRouteEntity>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRouteStops(String routeId) booleanisPrimed()voidprimeRoutes(Collection<DeliveryRouteEntity> routes) voidprimeStops(Map<String, List<DeliveryRouteStopEntity>> stopsByRoute) voidregisterRoute(DeliveryRouteEntity route) voidregisterStops(String routeId, List<DeliveryRouteStopEntity> stops) voidremoveRoute(String routeId) 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
-
RouteCacheService
public RouteCacheService()
-
-
Method Details
-
getCacheType
- Specified by:
getCacheTypein interfaceICacheKey<RouteCacheService>- Overrides:
getCacheTypein classAbstractCache<RouteCacheService, DeliveryRouteEntity>
-
getCacheDomain
- Specified by:
getCacheDomainin interfaceICacheKey<RouteCacheService>- Overrides:
getCacheDomainin classAbstractCache<RouteCacheService, DeliveryRouteEntity>
-
getSource
- Specified by:
getSourcein interfaceICacheKey<RouteCacheService>- Overrides:
getSourcein classAbstractCache<RouteCacheService, DeliveryRouteEntity>
-
getVersion
- Specified by:
getVersionin interfaceICacheKey<RouteCacheService>- Overrides:
getVersionin classAbstractCache<RouteCacheService, DeliveryRouteEntity>
-
registerRoute
-
primeRoutes
-
primeStops
-
findRoute
-
getAllRoutes
-
getRouteStops
-
registerStops
-
isPrimed
public boolean isPrimed() -
removeRoute
-
getRouteCacheKey
-