Class AutoSavingCache<K extends CacheKey,​V>

    • Field Detail

      • flushInProgress

        public static final java.util.Set<CacheService.CacheType> flushInProgress
        True if a cache flush is currently executing: only one may execute at a time.
      • saveTask

        protected volatile java.util.concurrent.ScheduledFuture<?> saveTask
    • Method Detail

      • getCacheDataPath

        public File getCacheDataPath​(java.lang.String version)
      • getCacheCrcPath

        public File getCacheCrcPath​(java.lang.String version)
      • getCacheMetadataPath

        public File getCacheMetadataPath​(java.lang.String version)
      • scheduleSaving

        public void scheduleSaving​(int savePeriodInSeconds,
                                   int keysToSave)
      • loadSavedAsync

        public Future<java.lang.Integer> loadSavedAsync()
      • loadSaved

        public int loadSaved()
      • submitWrite

        public Future<?> submitWrite​(int keysToSave)