Module net.morimekta.config
Package net.morimekta.config
Class ConfigWatcher.ConfigEntry<ConfigFileType>
- java.lang.Object
-
- net.morimekta.config.ConfigWatcher.ConfigEntry<ConfigFileType>
-
- Type Parameters:
ConfigFileType- The parsed config file type.
- Enclosing class:
- ConfigWatcher<ConfigFileType>
public static class ConfigWatcher.ConfigEntry<ConfigFileType> extends Object
A config file entry cached in the watcher.
-
-
Field Summary
Fields Modifier and Type Field Description ConfigFileTypeconfigPathfileThe file name of the config file.StringidentifierInstantupdatedAt
-
Constructor Summary
Constructors Constructor Description ConfigEntry(Path file, String identifier, Instant updatedAt, ConfigFileType config)
-
-
-
Field Detail
-
file
public final Path file
The file name of the config file.
-
identifier
public final String identifier
-
updatedAt
public final Instant updatedAt
-
config
public final ConfigFileType config
-
-
Constructor Detail
-
ConfigEntry
public ConfigEntry(Path file, String identifier, Instant updatedAt, ConfigFileType config)
- Parameters:
file- The config file.identifier- The config identifier.updatedAt- The timestamp it was last successfully updated.config- The current config content.
-
-