public class TemplateCache extends Cache<TemplateCache.Key,Templates>
| Modifier and Type | Class and Description |
|---|---|
static class |
TemplateCache.Key
Object to use as a key in the Caches.
|
lock, maxEntrySize| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
static TemplateCache |
getCache()
Returns the Template cache.
|
String |
getDescription()
Gives a description for this cache type.
|
String |
getName()
Returns a name for this cache type.
|
Templates |
getTemplates(Source src) |
Templates |
getTemplates(Source src,
URIResolver uri) |
static void |
main(String[] argv)
Invocation of the class from the commandline for testing
|
Templates |
put(Source src,
Templates value) |
Templates |
put(Source src,
Templates value,
URIResolver uri) |
Templates |
put(TemplateCache.Key key,
Templates value)
You can only put Source/Templates values in the cache, so this throws an Exception.
|
Templates |
remove(Object o)
When removing an entry then also the FileWatcher must be removed.
|
checkCachePolicy, contains, containsKey, containsValue, entrySet, equals, get, getAvarageValueLength, getByteSize, getByteSize, getCheapByteSize, getCount, getDefaultMaxEntrySize, getHits, getImplementation, getLock, getMaxEntrySize, getMaxSize, getMisses, getPuts, getRatio, getSize, getStats, hashCode, isActive, isEmpty, keySet, maxSize, putAll, putCache, reset, setActive, setMaxEntrySize, setMaxSize, size, toString, valuesclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic static TemplateCache getCache()
public String getName()
CachegetName in interface CacheMBeangetName in class Cache<TemplateCache.Key,Templates>public String getDescription()
CachegetDescription in interface CacheMBeangetDescription in class Cache<TemplateCache.Key,Templates>public Templates getTemplates(Source src, URIResolver uri)
public Templates remove(Object o)
remove in interface Map<TemplateCache.Key,Templates>remove in class Cache<TemplateCache.Key,Templates>Map.remove(java.lang.Object)public void clear()
clear in interface Map<TemplateCache.Key,Templates>clear in interface CacheMBeanclear in class Cache<TemplateCache.Key,Templates>Map.clear()public Templates put(TemplateCache.Key key, Templates value)
put in interface Map<TemplateCache.Key,Templates>put in class Cache<TemplateCache.Key,Templates>RuntimeExceptionpublic Templates put(Source src, Templates value, URIResolver uri)
public static void main(String[] argv)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}