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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
enable()
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) void
invalidateOlder
(String identifier, long timestamp) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:SubSystem
Performs enable actions for the subsystem.- Specified by:
enable
in interfaceJSONStorage
- Specified by:
enable
in interfaceSubSystem
-
storeJson
- Specified by:
storeJson
in interfaceJSONStorage
-
getCache
public com.github.benmanes.caffeine.cache.Cache<com.djrapitops.plan.delivery.webserver.cache.JSONMemoryStorageShim.TimestampedIdentifier,JSONStorage.StoredJSON> getCache() -
fetchJSON
- Specified by:
fetchJSON
in interfaceJSONStorage
-
fetchExactJson
- Specified by:
fetchExactJson
in interfaceJSONStorage
-
fetchJsonMadeBefore
- Specified by:
fetchJsonMadeBefore
in interfaceJSONStorage
-
fetchJsonMadeAfter
- Specified by:
fetchJsonMadeAfter
in interfaceJSONStorage
-
invalidateOlder
- Specified by:
invalidateOlder
in interfaceJSONStorage
-
getTimestamp
- Specified by:
getTimestamp
in interfaceJSONStorage
-