|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.page.PageAccessSynchronizer
public class PageAccessSynchronizer
Synchronizes access to page instances from multiple threads
Nested Class Summary | |
---|---|
static class |
PageAccessSynchronizer.PageLock
Thread's lock on a page |
Constructor Summary | |
---|---|
PageAccessSynchronizer(Duration timeout)
Constructor |
Method Summary | |
---|---|
IPageManager |
adapt(IPageManager pagemanager)
Wraps a page manager with this synchronizer |
Duration |
getTimeout(int pageId)
|
void |
lockPage(int pageId)
Acquire a lock to a page |
void |
unlockAllPages()
Unlocks all pages locked by this thread |
void |
unlockPage(int pageId)
Unlocks a single page locked by the current thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageAccessSynchronizer(Duration timeout)
timeout
- timeout value for acquiring a page lockMethod Detail |
---|
public Duration getTimeout(int pageId)
pageId
- the id of the page to be locked
public void lockPage(int pageId) throws CouldNotLockPageException
pageId
- page id
CouldNotLockPageException
- if lock could not be acquiredpublic void unlockAllPages()
public void unlockPage(int pageId)
pageId
- the id of the page which should be unlocked.public IPageManager adapt(IPageManager pagemanager)
pagemanager
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |