Package org.aksw.commons.lock.db.api
Interface ResourceLock<O>
- All Known Implementing Classes:
LockStoreImpl.ResourceLockImpl
public interface ResourceLock<O>
-
Method Summary
Modifier and TypeMethodDescriptionGet an exclusive lock on the lock which prevents concurent modification of the state of the read locks or the write lock.null if the write lock is not ownedOwner to lock
-
Method Details
-
getMgmtLockOwnerKey
O getMgmtLockOwnerKey()Get an exclusive lock on the lock which prevents concurent modification of the state of the read locks or the write lock. This means that the#acquireReadLock(Object)and#acquireWriteLock(Object)methods both need to acquire the management lock first- Returns:
-
get
-
streamReadLockOwnerKeys
Owner to lock- Throws:
IOException
-
getWriteLockOwnerKey
null if the write lock is not owned- Throws:
IOException
-