Class JSONFileStorage
java.lang.Object
com.djrapitops.plan.delivery.webserver.cache.JSONFileStorage
- All Implemented Interfaces:
JSONStorage
,SubSystem
In charge of storing json files on disk for later retrieval.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.djrapitops.plan.delivery.webserver.cache.JSONStorage
JSONStorage.StoredJSON
-
Constructor Summary
ConstructorDescriptionJSONFileStorage
(PlanFiles files, Formatters formatters, net.playeranalytics.plugin.server.PluginLogger logger) -
Method Summary
Modifier and TypeMethodDescriptionfetchExactJson
(String identifier, long timestamp) fetchJsonMadeAfter
(String identifier, long timestamp) fetchJsonMadeBefore
(String identifier, long timestamp) getTimestamp
(String identifier) void
invalidateOlder
(String identifier, long timestamp)
-
Constructor Details
-
JSONFileStorage
@Inject public JSONFileStorage(PlanFiles files, Formatters formatters, net.playeranalytics.plugin.server.PluginLogger logger)
-
-
Method Details
-
storeJson
- Specified by:
storeJson
in interfaceJSONStorage
-
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
-