public class ConfigSourceCacheWrapper extends AbstractConfigSource
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_SIZE |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
ConfigSourceCacheWrapper(AbstractConfigSource delegate,
com.google.common.cache.CacheBuilder<String,String> cb) |
ConfigSourceCacheWrapper(AbstractConfigSource delegate,
long expireAfterSecond) |
| Modifier and Type | Method and Description |
|---|---|
String |
doGetConfig(String key) |
String |
getName() |
int |
getOrder()
Get the order value of this object.
|
boolean |
hasKey(String key) |
changeValueType, getConfig, getEffectiveKey, getStringConfigpublic static final int DEFAULT_MAX_SIZE
public ConfigSourceCacheWrapper(AbstractConfigSource delegate, com.google.common.cache.CacheBuilder<String,String> cb)
public ConfigSourceCacheWrapper(AbstractConfigSource delegate, long expireAfterSecond)
public String getName()
public String doGetConfig(String key)
doGetConfig in class AbstractConfigSourcepublic boolean hasKey(String key)
hasKey in class AbstractConfigSourcepublic int getOrder()
OrderedHigher values are interpreted as lower priority. As a consequence,
the object with the lowest value has the highest priority (somewhat
analogous to Servlet load-on-startup values).
Same order values will result in arbitrary sort positions for the affected objects.
Ordered.HIGHEST_PRECEDENCE,
Ordered.LOWEST_PRECEDENCECopyright © 2024. All rights reserved.