public class WikittyCacheJCS extends Object implements WikittyCache
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.jcs.access.GroupCacheAccess |
extensionCache
cache pour les extensions
|
protected org.apache.jcs.access.GroupCacheAccess |
priorityCache
cache ou sont stocke les objects qui doivent rester le plus possible
en memoire
|
protected Set<String> |
priorityExtensions |
protected org.apache.jcs.access.GroupCacheAccess |
wikittyCache
cache pour les autres wikitties
|
| Constructor and Description |
|---|
WikittyCacheJCS(org.nuiton.util.ApplicationConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearExtension()
Clear all cache.
|
void |
clearWikitty()
Clear all cache.
|
boolean |
existsExtension(String id) |
boolean |
existsWikitty(String id) |
WikittyExtension |
getExtension(String extId)
Return wikitty object if is in the cache, null otherwise.
|
Set<String> |
getPriorityExtensions()
Liste des extensions a conserver prioritairement
|
Wikitty |
getWikitty(String id)
Return wikitty object if is in the cache, null otherwize.
|
void |
putExtension(WikittyExtension e)
Only realy put wikitty in cache, if not in cache or version is newer than
one in cache
|
void |
putWikitty(Wikitty e)
Only realy put wikitty in cache, if not in cache or version is newer than
one in cache
|
void |
removeExtension(String extId)
Remove wikitty from cache.
|
void |
removeWikitty(String id)
Remove wikitty from cache.
|
protected org.apache.jcs.access.GroupCacheAccess priorityCache
protected org.apache.jcs.access.GroupCacheAccess wikittyCache
protected org.apache.jcs.access.GroupCacheAccess extensionCache
public WikittyCacheJCS(org.nuiton.util.ApplicationConfig config)
config - not used currently but necessary in futur to configure the cache
Create a soft cache.public Set<String> getPriorityExtensions()
public boolean existsWikitty(String id)
existsWikitty in interface WikittyCachepublic Wikitty getWikitty(String id)
getWikitty in interface WikittyCacheid - public void putWikitty(Wikitty e)
putWikitty in interface WikittyCachee - public void removeWikitty(String id)
removeWikitty in interface WikittyCacheid - wikitty id to removepublic void clearWikitty()
clearWikitty in interface WikittyCachepublic boolean existsExtension(String id)
existsExtension in interface WikittyCachepublic WikittyExtension getExtension(String extId)
getExtension in interface WikittyCacheextId - extension idpublic void putExtension(WikittyExtension e)
putExtension in interface WikittyCachee - public void removeExtension(String extId)
removeExtension in interface WikittyCacheextId - wikitty id to removepublic void clearExtension()
clearExtension in interface WikittyCacheCopyright © 2009-2013 CodeLutin. All Rights Reserved.