Class GeolocationCache
java.lang.Object
com.djrapitops.plan.gathering.geolocation.GeolocationCache
- All Implemented Interfaces:
SubSystem
-
Constructor Summary
ConstructorsConstructorDescriptionGeolocationCache(Locale locale, PlanConfig config, GeoLite2Geolocator geoLite2Geolocator, net.playeranalytics.plugin.server.PluginLogger logger, Processing processing) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidClears the cachevoiddisable()Performs disable actions for the subsystemvoidenable()Performs enable actions for the subsystem.getCountry(String ipAddress) Retrieves the country in full length (e.g.void
-
Constructor Details
-
GeolocationCache
@Inject public GeolocationCache(Locale locale, PlanConfig config, GeoLite2Geolocator geoLite2Geolocator, net.playeranalytics.plugin.server.PluginLogger logger, Processing processing)
-
-
Method Details
-
enable
-
canGeolocate
public boolean canGeolocate() -
tryToPrepareGeoLite2
public void tryToPrepareGeoLite2() -
getCountry
-
disable
-
clearCache
public void clearCache()Clears the cache
-