Constructor and Description |
---|
GeolocationCache(Locale locale,
PlanConfig config,
GeoLite2Geolocator geoLite2Geolocator,
IP2CGeolocator ip2cGeolocator,
com.djrapitops.plugin.logging.console.PluginLogger logger,
com.djrapitops.plugin.task.RunnableFactory runnableFactory) |
Modifier and Type | Method and Description |
---|---|
boolean |
canGeolocate() |
void |
clearCache()
Clears the cache
|
void |
disable()
Performs disable actions for the subsystem
|
void |
enable()
Performs enable actions for the subsystem.
|
java.lang.String |
getCountry(java.lang.String ipAddress)
Retrieves the country in full length (e.g.
|
void |
tryToPrepareGeoLite2() |
@Inject public GeolocationCache(Locale locale, PlanConfig config, GeoLite2Geolocator geoLite2Geolocator, IP2CGeolocator ip2cGeolocator, com.djrapitops.plugin.logging.console.PluginLogger logger, com.djrapitops.plugin.task.RunnableFactory runnableFactory)
public void enable()
SubSystem
public boolean canGeolocate()
public void tryToPrepareGeoLite2()
public java.lang.String getCountry(java.lang.String ipAddress)
ipAddress
- The IP Address for which the country is retrievedpublic void disable()
SubSystem
public void clearCache()