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, findcleanup, clear, dependenciesValid, getDependencies, has, lastSet, logAction, remove, sizepublic ConfigCache()
public IndexerConfig find(File configFile, String indexName) throws Exception
Exceptionprotected Object generate(Object key)
throws Exception
generate in class GeneratingCachekey - The key to generate a value for.Exception - If a value cannot be generated for any reason.