public class ConfigCache extends GeneratingCache
Modifier and Type | Class and Description |
---|---|
private static class |
ConfigCache.ConfigCacheKey
A key in the ConfigCache.
|
Cache.ListEntry, Cache.NullIterator
Constructor and Description |
---|
ConfigCache()
Default constructor - defines the default cache size and expiration time.
|
Modifier and Type | Method and Description |
---|---|
IndexerConfig |
find(File configFile,
String indexName)
Find or load the configuration given its File
|
protected Object |
generate(Object key)
Load a configuration given its path
|
addDependency, find
cleanup, clear, dependenciesValid, getDependencies, has, lastSet, logAction, remove, size
public ConfigCache()
public IndexerConfig find(File configFile, String indexName) throws Exception
Exception
protected Object generate(Object key) throws Exception
generate
in class GeneratingCache
key
- The key to generate a value for.Exception
- If a value cannot be generated for any reason.