Package org.apache.wicket.page
Class DefaultPageLockManager
java.lang.Object
org.apache.wicket.page.DefaultPageLockManager
- All Implemented Interfaces:
Serializable
,IPageLockManager
Default
IPageLockManager
that holds a map of locks in the current session.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTimeout
(int pageId) void
lockPage
(int pageId) Acquire a lock to a pagevoid
Unlocks all pages locked by this threadvoid
unlockPage
(int pageId) Unlocks a single page locked by the current thread.
-
Constructor Details
-
DefaultPageLockManager
Constructor- Parameters:
timeout
- timeout value for acquiring a page lock
-
-
Method Details
-
getTimeout
- Parameters:
pageId
- the id of the page to be locked- Returns:
- the duration for acquiring a page lock
-
lockPage
Description copied from interface:IPageLockManager
Acquire a lock to a page- Specified by:
lockPage
in interfaceIPageLockManager
- Parameters:
pageId
- page id- Throws:
CouldNotLockPageException
- if lock could not be acquired
-
unlockAllPages
Description copied from interface:IPageLockManager
Unlocks all pages locked by this thread- Specified by:
unlockAllPages
in interfaceIPageLockManager
-
unlockPage
Description copied from interface:IPageLockManager
Unlocks a single page locked by the current thread.- Specified by:
unlockPage
in interfaceIPageLockManager
- Parameters:
pageId
- the id of the page which should be unlocked.
-