public abstract class GeoIpResolver<V> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
lastError |
protected com.codahale.metrics.Timer |
resolveTime |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Optional<V> |
doGetGeoIpData(InetAddress address) |
Optional<V> |
getGeoIpData(InetAddress address) |
Optional<String> |
getLastError()
Get the last error, if any, produced after having called
getGeoIpData(InetAddress). |
boolean |
isEnabled() |
protected String lastError
protected final com.codahale.metrics.Timer resolveTime
public boolean isEnabled()
public Optional<V> getGeoIpData(InetAddress address)
public Optional<String> getLastError()
getGeoIpData(InetAddress).protected abstract Optional<V> doGetGeoIpData(InetAddress address)
Copyright © 2012–2022 Graylog, Inc.. All rights reserved.