Interface LockManager

  • All Known Implementing Classes:
    LockManagerImpl, XALockManager

    public interface LockManager
    Defines the functionality needed for locking and unlocking nodes.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addLockToken​(SessionImpl session, String lt)
      Invoked by a session to inform that a lock token has been added.
      void checkLock​(NodeImpl node)
      Check whether the node given is locked by somebody else than the current session.
      void checkLock​(Path path, Session session)
      Check whether the path given is locked by somebody else than the session described.
      void checkUnlock​(Session session, NodeImpl node)
      Check whether a session is allowed to unlock a node.
      Lock getLock​(NodeImpl node)
      Returns the Lock object that applies to a node.
      Lock[] getLocks​(SessionImpl session)
      Returns all locks owned by the specified session.
      boolean holdsLock​(NodeImpl node)
      Returns true if the node given holds a lock; otherwise returns false.
      boolean isLocked​(NodeImpl node)
      Returns true if this node is locked either as a result of a lock held by this node or by a deep lock on a node above this node; otherwise returns false
      Lock lock​(NodeImpl node, boolean isDeep, boolean isSessionScoped)
      Lock a node.
      Lock lock​(NodeImpl node, boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerInfo)
      Lock a node.
      void removeLockToken​(SessionImpl session, String lt)
      Invoked by a session to inform that a lock token has been removed.
      void unlock​(NodeImpl node)
      Removes the lock on a node given by its path.