public interface IPageManager
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all data for the current session.
|
void |
commitRequest()
Commits the changes to external storage if the manager uses it.
|
void |
destroy()
Destroy the page manager.
|
IPageManagerContext |
getContext() |
IManageablePage |
getPage(int id)
Retrieve page instance with given id.
|
void |
newSessionCreated()
Invoked when new session has been created.
|
void |
removePage(IManageablePage page)
Removes a page from the
IPageStore and
IDataStore. |
boolean |
supportsVersioning()
Returns whether this manager supports versioning.
|
void |
touchPage(IManageablePage page)
Marks page as changed.
|
void |
untouchPage(IManageablePage page)
Marks page as non-changed.
|
IPageManagerContext getContext()
IManageablePage getPage(int id) throws CouldNotLockPageException
id - the id of the page to loadnullCouldNotLockPageException - if the page is already locked by another thread
and the lock cannot be acquired for some timeoutvoid removePage(IManageablePage page)
IPageStore and
IDataStore. Any attempt to access it later
will lead to PageExpiredExceptionpage - The page instance to remove from the storesvoid touchPage(IManageablePage page)
Note:Only stateful pages are stored.
page - the page that should be stored in the page stores at the end of the request.CouldNotLockPageException - if the page is already locked by another thread
and the lock cannot be acquired for some timeoutvoid untouchPage(IManageablePage page)
page - the page that should not be stored in the page stores at the end of the request.CouldNotLockPageException - if the page is already locked by another thread
and the lock cannot be acquired for some timeoutboolean supportsVersioning()
void commitRequest()
void newSessionCreated()
void clear()
void destroy()
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.