Class JSONMemoryStorageShim
java.lang.Object
com.djrapitops.plan.delivery.webserver.cache.JSONMemoryStorageShim
- All Implemented Interfaces:
JSONStorage,SubSystem
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.djrapitops.plan.delivery.webserver.cache.JSONStorage
JSONStorage.StoredJSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenable()Performs enable actions for the subsystem.fetchExactJson(String identifier, long timestamp) fetchJsonMadeAfter(String identifier, long timestamp) fetchJsonMadeBefore(String identifier, long timestamp) com.github.benmanes.caffeine.cache.Cache<com.djrapitops.plan.delivery.webserver.cache.JSONMemoryStorageShim.TimestampedIdentifier, JSONStorage.StoredJSON> getCache()getTimestamp(String identifier) voidinvalidateOlder(String identifier, long timestamp) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.djrapitops.plan.delivery.webserver.cache.JSONStorage
disable, storeJson, storeJson, storeJson
-
Constructor Details
-
JSONMemoryStorageShim
-
-
Method Details
-
enable
public void enable()Description copied from interface:SubSystemPerforms enable actions for the subsystem.- Specified by:
enablein interfaceJSONStorage- Specified by:
enablein interfaceSubSystem
-
storeJson
- Specified by:
storeJsonin interfaceJSONStorage
-
getCache
public com.github.benmanes.caffeine.cache.Cache<com.djrapitops.plan.delivery.webserver.cache.JSONMemoryStorageShim.TimestampedIdentifier,JSONStorage.StoredJSON> getCache() -
fetchJSON
- Specified by:
fetchJSONin interfaceJSONStorage
-
fetchExactJson
- Specified by:
fetchExactJsonin interfaceJSONStorage
-
fetchJsonMadeBefore
- Specified by:
fetchJsonMadeBeforein interfaceJSONStorage
-
fetchJsonMadeAfter
- Specified by:
fetchJsonMadeAfterin interfaceJSONStorage
-
invalidateOlder
- Specified by:
invalidateOlderin interfaceJSONStorage
-
getTimestamp
- Specified by:
getTimestampin interfaceJSONStorage
-