Package com.enhancedechest.storage
package com.enhancedechest.storage
-
ClassDescriptionWrite-back scheduling for the lazy cache: an async repeating timer at the configured
database.autosave-interval(default 3m) that callsCachedStorage.flush()and thenCachedStorage.evictIdle()(releasing owners who are offline and fully flushed), plus the per-player write-back a few seconds after a quit (AutosaveService.flushQuitterLater(java.util.UUID)).Lazy-loading write-back cache over the SQL backend, and theEnderChestStoragethe rest of the plugin sees.All methods execute synchronously on the calling thread.Lightweight reference to an expired chest, returned byEnderChestStorage.findExpired(long).One known player for the in-memory name index: their UUID, last recorded name, and last-seen time.Oneenderchestsrow read verbatim from a source database forEnderChestStorage.importRows(java.util.List<com.enhancedechest.storage.EnderChestStorage.RawPlayerRow>, java.util.List<com.enhancedechest.storage.EnderChestStorage.RawChestRow>).Oneplayersrow read verbatim from a source database forEnderChestStorage.importRows(java.util.List<com.enhancedechest.storage.EnderChestStorage.RawPlayerRow>, java.util.List<com.enhancedechest.storage.EnderChestStorage.RawChestRow>).The SQL half of the lazy-load + write-back cache model: the narrow contractCachedStorageneeds from a database backend.Primary key of oneenderchestsrow, used to flush a deletion.Primary key + kind of one expiredenderchestsrow, returned byStorageBackend.findExpired(long).One player's full cache-miss load: theirenderchestsrows plus their (nullable)playersrow.