Class PageAccessSynchronizer

java.lang.Object
org.apache.wicket.page.PageAccessSynchronizer
All Implemented Interfaces:
Serializable

public class PageAccessSynchronizer extends Object implements Serializable
Synchronizes access to page instances from multiple threads
Author:
Igor Vaynberg (ivaynberg)
See Also:
  • Constructor Details

  • Method Details

    • lockPage

      public void lockPage(int pageId) throws CouldNotLockPageException
      Acquire a lock to a page
      Parameters:
      pageId - page id
      Throws:
      CouldNotLockPageException - if lock could not be acquired
    • unlockAllPages

      public void unlockAllPages()
      Unlocks all pages locked by this thread
    • unlockPage

      public void unlockPage(int pageId)
      Unlocks a single page locked by the current thread.
      Parameters:
      pageId - the id of the page which should be unlocked.
    • adapt

      public IPageManager adapt(IPageManager manager)
      Wraps a page manager with this synchronizer
      Parameters:
      manager -
      Returns:
      wrapped page manager