Interface IPageLockManager

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultPageLockManager

public interface IPageLockManager extends Serializable
Lock manager for PageAccessSynchronizer responsible for locking and unlocking pages for the duration of a request.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    lockPage(int pageId)
    Acquire a lock to a page
    void
    Unlocks all pages locked by this thread
    void
    unlockPage(int pageId)
    Unlocks a single page locked by the current thread.
  • Method Details

    • lockPage

      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

      Unlocks all pages locked by this thread
    • unlockPage

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