public class PresentationSectionManager extends PresentationManager<PresentationSection> implements CacheManager
mLogger, mMutex, mMutexTimeout
ARTICLEHTML, ARTICLEPRESENTATION, ARTICLEXML, CATALOG, CATALOGENTRY, POOLPRESENTATION, SECTION, SECTIONPRESENTATION, SECTIONSOURCEMAP
Constructor and Description |
---|
PresentationSectionManager()
Contructs an instance of PresentationSectionManager.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createPresentationObject(int sectionId)
creates a new PresentationObject an put it onto the cache
|
void |
expireSection(int sectionId)
PresentationSectionCache uses sectionId as key.
|
PresentationPool |
getActivePool(int pId) |
Object |
getFromCache(String type,
int sectionId)
Get object from the cache.
|
protected String |
getManagerName() |
PresentationSection |
getPresentationSection(int sectionId) |
PresentationSection |
getPresentationSectionFromCache(int sectionId)
Gets a PresentationSection from the cache.
|
void |
setCache(Cache[] pCache) |
doStartService, drop, expire, getCache, getExpireCache, getFromCache, getObjectLoader, getUpdater, refresh, setCache, setExpireCache, setObjectLoader, setUpdater
public PresentationSectionManager()
protected String getManagerName()
getManagerName
in class PresentationManager<PresentationSection>
public void setCache(Cache[] pCache)
setCache
in interface CacheManager
public Object getFromCache(String type, int sectionId)
CacheManager
getFromCache
in interface CacheManager
sectionId
- The id of the object to fetch. Should return null if the object doesn't exist.public PresentationSection getPresentationSectionFromCache(int sectionId)
sectionId
- id of the section we will get the cache active
PresentationSectionpublic PresentationSection getPresentationSection(int sectionId)
protected void createPresentationObject(int sectionId)
PresentationManager
createPresentationObject
in class PresentationManager<PresentationSection>
sectionId
- id of the object we are going to createpublic void expireSection(int sectionId)
public PresentationPool getActivePool(int pId)
© 1998- 2021 Escenic AS