|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CachedMediaProvider
Extends media providers by caching support.
| Method Summary | |
|---|---|
Resource |
getCachedResource(String path)
Gets a cached media content resource. |
ObjectName |
getResourceCacheName()
Gets the resource cache. |
void |
removeCachedResource(String path)
Removes a cached media content resource. |
void |
setCachedResource(String path,
Resource res)
Sets a cached media content resource. |
void |
setCachedResource(String path,
Resource res,
int freq)
Sets a cached media content resource with an expiration frequency. |
void |
setResourceCacheName(ObjectName cache)
Sets the resource cache. |
| Methods inherited from interface org.norther.tammi.spray.media.MediaProvider |
|---|
getDefaultIndex, getMediaKey, getResource, isLocalizedContent, setDefaultIndex, setLocalizedContent, setMediaKey |
| Methods inherited from interface org.norther.tammi.core.cache.CacheClient |
|---|
clearCached, expireCached, expireFraction, getCache, isCachingDisabled, removeCache, setCachingDisabled |
| Methods inherited from interface org.norther.tammi.core.base.Refreshable |
|---|
getRefreshed, refresh |
| Method Detail |
|---|
ObjectName getResourceCacheName()
void setResourceCacheName(ObjectName cache)
cache - the name of the cache or a query.Resource getCachedResource(String path)
path - the content path.
void setCachedResource(String path,
Resource res)
path - the content path.res - the cached resource.
void setCachedResource(String path,
Resource res,
int freq)
path - the content path.res - the cached resource.freq - the expiration frequency.void removeCachedResource(String path)
path - the content path.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||