public interface ILayerCache extends Serializable, IGenericCache
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all layer objects in the cache
|
boolean |
contains(String key)
Returns true if the layer with the specified key is in the
cache
|
void |
dump(Writer writer,
Pattern filter)
Output the cache info to the specified Writer
|
ILayer |
get(String key)
Returns the layer with the specified key, or null if the layer with the
specified key is not in the cache.
|
Set<String> |
getKeys()
Returns the set of keys associated with entries in the cache
|
ILayer |
getLayer(javax.servlet.http.HttpServletRequest request)
Returns a layer object for the specified request.
|
void |
setAggregator(IAggregator aggregator)
Called for newly created (or de-serialized) caches to set the
aggregator instance for this cache.
|
int |
size()
Returns the number of entries in the layer cache
|
newInstance
ILayer getLayer(javax.servlet.http.HttpServletRequest request)
request
- the request objectILayer get(String key)
ILayer.getKey()
key
- the layer keyboolean contains(String key)
contains
in interface IGenericCache
key
- the layer keyvoid clear()
clear
in interface IGenericCache
int size()
size
in interface IGenericCache
Set<String> getKeys()
getKeys
in interface IGenericCache
void dump(Writer writer, Pattern filter) throws IOException
dump
in interface IGenericCache
writer
- the target Writerfilter
- Optional filter argumentIOException
void setAggregator(IAggregator aggregator)
IAggregator.getConfig()
may return null if called
from within this method.setAggregator
in interface IGenericCache
aggregator
- The aggregator instance for the cacheCopyright © 2011-2015 IBM. All Rights Reserved.