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 ClassesNested classes/interfaces inherited from interface com.djrapitops.plan.delivery.webserver.cache.JSONStorage
JSONStorage.StoredJSON -
Constructor Summary
ConstructorsConstructorDescriptionJSONFileStorage(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) voidinvalidateOlder(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:
storeJsonin interfaceJSONStorage
-
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
-