|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.wikitty.services.WikittyCacheJCS
public class WikittyCacheJCS
Implantation du cache base sur le projet apache JCS
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
WikittyCacheJCS(org.nuiton.util.ApplicationConfig config)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Set<String> priorityExtensions
protected org.apache.jcs.access.GroupCacheAccess priorityCache
protected org.apache.jcs.access.GroupCacheAccess wikittyCache
protected org.apache.jcs.access.GroupCacheAccess extensionCache
| Constructor Detail |
|---|
public WikittyCacheJCS(org.nuiton.util.ApplicationConfig config)
config - not used currently but necessary in futur to configure the cache
Create a soft cache.| Method Detail |
|---|
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 id
public 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 WikittyCache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||