Interface CycleDetectingLockFactory.CycleDetectingLock
- All Known Implementing Classes:
CycleDetectingLockFactory.CycleDetectingReentrantLock
,CycleDetectingLockFactory.CycleDetectingReentrantReadWriteLock
- Enclosing class:
CycleDetectingLockFactory
private static interface CycleDetectingLockFactory.CycleDetectingLock
Internal Lock implementations implement the
CycleDetectingLock
interface, allowing the
detection logic to treat all locks in the same manner.-
Method Summary
Modifier and TypeMethodDescriptionboolean
-
Method Details
-
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.
-