public interface ICache extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
dump(Writer writer,
Pattern filter)
Outputs a string representation of this cache object.
|
IGenericCache |
getCache(String key)
Returns the named generic cache.
|
long |
getCreated()
Returns the date and time that this cache object was created.
|
IGzipCache |
getGzipCache()
Returns the cache of gzipped modules
|
ILayerCache |
getLayers()
Returns the cache of layer build cache entries.
|
IModuleCache |
getModules()
Returns the cache of module build cache entries
|
IGenericCache |
putIfAbsent(String key,
IGenericCache cache)
Adds the named cache object to the Aggregator cache.
|
boolean |
remove(String key)
Removes the named cache object with the specified key.
|
void |
setAggregator(IAggregator aggregator)
Called for newly created (or de-serialized) caches to set the aggregator
instance for the cache.
|
ILayerCache getLayers()
IModuleCache getModules()
IGzipCache getGzipCache()
IGenericCache getCache(String key)
putIfAbsent(String, IGenericCache)
.key
- the cache nameIGenericCache putIfAbsent(String key, IGenericCache cache)
ConcurrentMap.putIfAbsent(Object, Object)
. Once a generic cache object is added, it
persists across server restarts. When the Aggregator cache is cleared, the
IGenericCache.newInstance()
method is called to create a new cache object for the
updated cache.key
- the cache namecache
- the new cache objectboolean remove(String key)
key
- name of the cache object to removelong getCreated()
void dump(Writer writer, Pattern filter) throws IOException
writer
- The writer object to output the cache dump tofilter
- A regular expression to filter the output. Passed along to the
module and layer cache object toString() methods.IOException
void setAggregator(IAggregator aggregator)
IAggregator.getConfig()
may return null if called
from within this method.aggregator
- The aggregator instance for this cache objectCopyright © 2011-2015 IBM. All Rights Reserved.