org.apache.jackrabbit.oak.jcr.lock
Class LockManagerImpl
java.lang.Object
org.apache.jackrabbit.oak.jcr.lock.LockManagerImpl
- All Implemented Interfaces:
- javax.jcr.lock.LockManager
public class LockManagerImpl
- extends Object
- implements javax.jcr.lock.LockManager
Simple lock manager implementation that just keeps track of a set of lock
tokens and delegates all locking operations back to the Session
and Node
implementations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LockManagerImpl
public LockManagerImpl(SessionContext sessionContext)
getLockTokens
@Nonnull
public String[] getLockTokens()
throws javax.jcr.RepositoryException
- Specified by:
getLockTokens
in interface javax.jcr.lock.LockManager
- Throws:
javax.jcr.RepositoryException
addLockToken
public void addLockToken(String lockToken)
throws javax.jcr.RepositoryException
- Specified by:
addLockToken
in interface javax.jcr.lock.LockManager
- Throws:
javax.jcr.RepositoryException
removeLockToken
public void removeLockToken(String lockToken)
throws javax.jcr.RepositoryException
- Specified by:
removeLockToken
in interface javax.jcr.lock.LockManager
- Throws:
javax.jcr.RepositoryException
isLocked
public boolean isLocked(String absPath)
throws javax.jcr.RepositoryException
- Specified by:
isLocked
in interface javax.jcr.lock.LockManager
- Throws:
javax.jcr.RepositoryException
holdsLock
public boolean holdsLock(String absPath)
throws javax.jcr.RepositoryException
- Specified by:
holdsLock
in interface javax.jcr.lock.LockManager
- Throws:
javax.jcr.RepositoryException
getLock
@Nonnull
public javax.jcr.lock.Lock getLock(String absPath)
throws javax.jcr.RepositoryException
- Specified by:
getLock
in interface javax.jcr.lock.LockManager
- Throws:
javax.jcr.RepositoryException
lock
@Nonnull
public javax.jcr.lock.Lock lock(String absPath,
boolean isDeep,
boolean isSessionScoped,
long timeoutHint,
String ownerInfo)
throws javax.jcr.RepositoryException
- Specified by:
lock
in interface javax.jcr.lock.LockManager
- Throws:
javax.jcr.RepositoryException
unlock
public void unlock(String absPath)
throws javax.jcr.RepositoryException
- Specified by:
unlock
in interface javax.jcr.lock.LockManager
- Throws:
javax.jcr.RepositoryException
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.