Interface CycleDetectingLockFactory.CycleDetectingLock
-
- All Known Implementing Classes:
CycleDetectingLockFactory.CycleDetectingReentrantLock,CycleDetectingLockFactory.CycleDetectingReentrantReadWriteLock
- Enclosing class:
- CycleDetectingLockFactory
private static interface CycleDetectingLockFactory.CycleDetectingLockInternal Lock implementations implement theCycleDetectingLockinterface, 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.LockGraphNodegetLockGraphNode()booleanisAcquiredByCurrentThread()
-
-
-
Method Detail
-
getLockGraphNode
CycleDetectingLockFactory.LockGraphNode getLockGraphNode()
- Returns:
- the
CycleDetectingLockFactory.LockGraphNodeassociated with this lock.
-
isAcquiredByCurrentThread
boolean isAcquiredByCurrentThread()
- Returns:
trueif the current thread has acquired this lock.
-
-