public interface IPageStore
IPageStore role is to mediate the storing and loading of pages done by IDataStore
s. IPageStore may pre-process the pages before passing them to
IDataStore.storeData(String, int, byte[]) and to post-process them after
IDataStore.getData(String, int).IDataStore| Modifier and Type | Method and Description |
|---|---|
IManageablePage |
convertToPage(Object page)
Converts a page representation to an instance of
IManageablePage |
void |
destroy()
Destroy the store.
|
IManageablePage |
getPage(String sessionId,
int pageId)
Restores a page from the persistent layer.
|
Serializable |
prepareForSerialization(String sessionId,
Serializable page)
Process the page before the it gets serialized.
|
void |
removePage(String sessionId,
int pageId)
Removes a page from the persistent layer.
|
Object |
restoreAfterSerialization(Serializable serializable)
This method should restore the serialized page to intermediate object that can be converted
to real page instance using
convertToPage(Object). |
void |
storePage(String sessionId,
IManageablePage page)
Stores the page to a persistent layer.
|
void |
unbind(String sessionId)
The page store should cleanup all the pages for that sessionid.
|
void destroy()
IManageablePage getPage(String sessionId, int pageId)
sessionId - The session of the page that must be removedpageId - The id of the page.void removePage(String sessionId, int pageId)
sessionId - The session of the page that must be removedpageId - The id of the page.void storePage(String sessionId, IManageablePage page)
sessionId - The session of the page that must be removedpage - The page to storevoid unbind(String sessionId)
sessionId - The session of the page that must be removedSerializable prepareForSerialization(String sessionId, Serializable page)
restoreAfterSerialization(Serializable).sessionId - The session of the page that must be removedpage - Object restoreAfterSerialization(Serializable serializable)
convertToPage(Object).serializable - IManageablePage convertToPage(Object page)
IManageablePagepage - some kind of page representationCopyright © 2006–2021 Apache Software Foundation. All rights reserved.