Class SessionLock.UpwardSubtreeLockCount

  • All Implemented Interfaces:
    LockCountManager<SessionToken>
    Enclosing class:
    SessionLock

    public static class SessionLock.UpwardSubtreeLockCount
    extends SessionLock.ChildSessionIDLockCount
    A LockCountManager considering session tokens and their subsessions (but not vice versa!) as equal. This locks a specific subtree in the session token tree and therefore allows siblings (session tokens with a common parent below the locking root) to have the lock concurrently.
    The subtree will be locked until the last (child) session has unlocked.

    In case multiple (read) locks are allowed, the root may move upward (in direction of the top-level) thus extending the subtree. In this case the nearest common ancestor of the existing root and the newly locking session will become the new root.