Class LockFromLink
java.lang.Object
org.aksw.commons.lock.LockBase
org.aksw.commons.lock.LockBaseRepeat
org.aksw.commons.lock.db.impl.LockFromLink
- All Implemented Interfaces:
Lock
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Pathprotected SymbolicLinkStrategyprotected Stringprotected Path -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class LockBaseRepeat
tryLock, tryLockActualMethods inherited from class LockBase
lock, lockInterruptibly, newCondition, tryLock
-
Field Details
-
linkStrategy
-
path
-
ownerKey
-
ownerKeyToTarget
-
targetToOwnerKey
-
cleanupAncestorPath
-
-
Constructor Details
-
LockFromLink
-
-
Method Details
-
getPath
-
singleLockAttempt
public boolean singleLockAttempt()- Specified by:
singleLockAttemptin classLockBaseRepeat
-
unlock
public void unlock() -
forceUnlock
public boolean forceUnlock() -
readOwnerKey
-
isOwnedHere
public boolean isOwnedHere() -
toString
-