Interface CycleDetectingLockFactory.CycleDetectingLock
-
- All Known Implementing Classes:
CycleDetectingLockFactory.CycleDetectingReentrantLock
,CycleDetectingLockFactory.CycleDetectingReentrantReadWriteLock
- Enclosing class:
- CycleDetectingLockFactory
private static interface CycleDetectingLockFactory.CycleDetectingLock
Internal Lock implementations implement theCycleDetectingLock
interface, allowing the detection logic to treat all locks in the same manner.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CycleDetectingLockFactory.LockGraphNode
getLockGraphNode()
boolean
isAcquiredByCurrentThread()
-
-
-
Method Detail
-
getLockGraphNode
CycleDetectingLockFactory.LockGraphNode getLockGraphNode()
- Returns:
- the
CycleDetectingLockFactory.LockGraphNode
associated with this lock.
-
isAcquiredByCurrentThread
boolean isAcquiredByCurrentThread()
- Returns:
true
if the current thread has acquired this lock.
-
-