Class MaxmindNativeDatabase
- java.lang.Object
-
- technology.dice.dicewhere.building.maxmindnative.MaxmindNativeDatabase
-
- All Implemented Interfaces:
IPDatabase
public class MaxmindNativeDatabase extends Object implements IPDatabase
-
-
Constructor Summary
Constructors Constructor Description MaxmindNativeDatabase(com.maxmind.geoip2.DatabaseReader location, Optional<com.maxmind.geoip2.DatabaseReader> anonymous)Builds a maxmind native database
-
-
-
Constructor Detail
-
MaxmindNativeDatabase
public MaxmindNativeDatabase(com.maxmind.geoip2.DatabaseReader location, Optional<com.maxmind.geoip2.DatabaseReader> anonymous)Builds a maxmind native database- Parameters:
location- a location database. GeoIP2 City and Country are supportedanonymous- an optional GeopIP anonymous database
-
-
Method Detail
-
get
public Optional<IpInformation> get(IP ip)
- Specified by:
getin interfaceIPDatabase
-
-