Class PreCacheTask

  • All Implemented Interfaces:
    Runnable

    public class PreCacheTask
    extends Object
    implements Runnable
    Given an instantiated and running instance of a federated transit data bundle, we pre-cache a number of expensive data operations so that the cache will be hot for eventual deployment. That includes caching StopBean, RouteBean and StopsForRouteBean objects, which in turn cache a number of other things.
    Author:
    bdferris
    • Constructor Detail

      • PreCacheTask

        public PreCacheTask()
    • Method Detail

      • setCacheManager

        @Autowired
        public void setCacheManager​(net.sf.ehcache.CacheManager cacheManager)
      • setTransitDataService

        @Autowired
        public void setTransitDataService​(org.onebusaway.transit_data.services.TransitDataService service)
      • setTransitGraphDao

        @Autowired
        public void setTransitGraphDao​(TransitGraphDao transitGraphDao)
      • run

        public void run()
        Specified by:
        run in interface Runnable