public class GzipCacheImpl extends GenericCacheImpl<IGzipCache.ICacheEntry> implements Serializable, IGzipCache
IGzipCache.ICacheEntry
cacheMap
Constructor and Description |
---|
GzipCacheImpl() |
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream(String key,
URI source,
org.apache.commons.lang3.mutable.MutableInt retLength)
Returns an input stream to the gzipped contents of the resource specified by
source |
IGenericCache |
newInstance()
Returns a new, empty, instance of this cache object.
|
void |
setAggregator(IAggregator aggregator)
Called for newly created (or de-serialized) caches to set the
aggregator instance for this cache.
|
clear, contains, dump, get, getKeys, size
public InputStream getInputStream(String key, URI source, org.apache.commons.lang3.mutable.MutableInt retLength) throws IOException
IGzipCache
source
getInputStream
in interface IGzipCache
key
- the cache key (typically the resource path from the request)source
- the URI to the resource on the serverretLength
- Returned - the length of the gzipped contentIOException
public void setAggregator(IAggregator aggregator)
IGenericCache
IAggregator.getConfig()
may return null if called
from within this method.setAggregator
in interface IGenericCache
setAggregator
in class GenericCacheImpl<IGzipCache.ICacheEntry>
aggregator
- The aggregator instance for the cachepublic IGenericCache newInstance()
IGenericCache
newInstance
in interface IGenericCache
newInstance
in class GenericCacheImpl<IGzipCache.ICacheEntry>
Copyright © 2011-2015 IBM. All Rights Reserved.