Class TransitDataServiceCachingInterceptor


  • public class TransitDataServiceCachingInterceptor
    extends org.onebusaway.container.cache.CacheableMethodManager
    To reduce the load on the TransitDataService, we can opportunistically cache a lot of stuff on the client side.
    Author:
    bdferris
    • Constructor Detail

      • TransitDataServiceCachingInterceptor

        public TransitDataServiceCachingInterceptor()
    • Method Detail

      • setup

        @PostConstruct
        public void setup()
      • setArrivalAndDepartureCacheWindow

        public void setArrivalAndDepartureCacheWindow​(int arrivalAndDepartureCacheWindow)
        Parameters:
        arrivalAndDepartureCacheWindow - in seconds
      • setArrivalAndDepartureCacheSize

        public void setArrivalAndDepartureCacheSize​(int arrivalAndDepartureCacheSize)
      • getStopsForRoute

        public Object getStopsForRoute​(org.aspectj.lang.ProceedingJoinPoint pjp)
                                throws Throwable
        Throws:
        Throwable
      • getSingleTripDetails

        public Object getSingleTripDetails​(org.aspectj.lang.ProceedingJoinPoint pjp)
                                    throws Throwable
        Throws:
        Throwable
      • getStopWithArrivalsAndDepartures

        public Object getStopWithArrivalsAndDepartures​(org.aspectj.lang.ProceedingJoinPoint pjp)
                                                throws Throwable
        Throws:
        Throwable
      • createCache

        protected net.sf.ehcache.Cache createCache​(org.aspectj.lang.ProceedingJoinPoint pjp,
                                                   String name)
        Overrides:
        createCache in class org.onebusaway.container.cache.CacheableMethodManager