protected static class PerSessionPageStore.PagesCache extends Object implements SecondLevelPageCache<String,Integer,IManageablePage>
| Constructor and Description |
|---|
PerSessionPageStore.PagesCache(int maxEntriesPerSession)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
IManageablePage |
getPage(String sessionId,
Integer pageId)
|
IManageablePage |
removePage(String sessionId,
Integer pageId) |
void |
removePages(String sessionId)
Removes all
IManageablePages for the session
with sessionId from the cache. |
void |
storePage(String sessionId,
Integer pageId,
IManageablePage page)
Store the serialized page in cache
|
public PerSessionPageStore.PagesCache(int maxEntriesPerSession)
maxEntriesPerSession - The number of cache entries per sessionpublic IManageablePage removePage(String sessionId, Integer pageId)
removePage in interface SecondLevelPageCache<String,Integer,IManageablePage>sessionId - The id of the http sessionpageId - The id of the page to remove from the cacheIManageablePage or null - otherwisepublic void removePages(String sessionId)
IManageablePages for the session
with sessionId from the cache.removePages in interface SecondLevelPageCache<String,Integer,IManageablePage>sessionId - The id of the expired http sessionpublic IManageablePage getPage(String sessionId, Integer pageId)
IManageablePage by looking it up by sessionId and
pageId. If there is a match then it is touched, i.e. it is moved at
the top of the cache.getPage in interface SecondLevelPageCache<String,Integer,IManageablePage>sessionId - The id of the http sessionpageId - The id of the page to findnull when not foundpublic void storePage(String sessionId, Integer pageId, IManageablePage page)
storePage in interface SecondLevelPageCache<String,Integer,IManageablePage>page - the data to serialize (page id, session id, bytes)public void destroy()
destroy in interface SecondLevelPageCache<String,Integer,IManageablePage>Copyright © 2006–2014 Apache Software Foundation. All rights reserved.