public abstract static class MaxmindDataAdapter.Config extends Object implements LookupDataAdapterConfiguration
| Modifier and Type | Class and Description |
|---|---|
static class |
MaxmindDataAdapter.Config.Builder |
TYPE_FIELD| Constructor and Description |
|---|
Config() |
| Modifier and Type | Method and Description |
|---|---|
static MaxmindDataAdapter.Config.Builder |
builder() |
abstract @Min(value=0L) long |
checkInterval() |
abstract TimeUnit |
checkIntervalUnit() |
abstract @NotNull DatabaseType |
dbType() |
abstract @NotEmpty String |
path() |
abstract String |
type() |
Optional<com.google.common.collect.Multimap<String,String>> |
validate()
Override this method to check for logical errors in the configuration, such as missing
files, or invalid combinations of options.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidatepublic abstract String type()
type in interface LookupDataAdapterConfiguration@NotEmpty public abstract @NotEmpty String path()
@NotNull public abstract @NotNull DatabaseType dbType()
@Min(value=0L) public abstract @Min(value=0L) long checkInterval()
public static MaxmindDataAdapter.Config.Builder builder()
public Optional<com.google.common.collect.Multimap<String,String>> validate()
LookupDataAdapterConfigurationOverride this method to check for logical errors in the configuration, such as missing files, or invalid combinations of options. Prefer validation annotations for simple per-property validations rules, such as min/max values, non-empty strings etc.
By default the configuration has no extra validation errors (i.e. the result of this
method is Optional.empty().
Returning failing validations here does not prevent saving the configuration!
If your validation needs access to additional services, override
LookupDataAdapterConfiguration.validate(LookupDataAdapterValidationContext) instead.
validate in interface LookupDataAdapterConfigurationCopyright © 2012–2021 Graylog, Inc.. All rights reserved.