Interface Control
-
- All Known Implementing Classes:
ActiveLock
,Lock
,LockControl
public interface Control
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addWaiters(java.util.Map<java.lang.Object,java.lang.Object> waiters)
ActiveLock
firstWaiter()
Lock
getFirstGrant()
java.util.List
getGranted()
Lock
getLock(CompatibilitySpace compatibilitySpace, java.lang.Object qualifier)
Lockable
getLockable()
LockControl
getLockControl()
java.util.List
getWaiting()
boolean
isEmpty()
boolean
isGrantable(boolean otherWaiters, CompatibilitySpace compatibilitySpace, java.lang.Object qualifier)
Control
shallowClone()
Clone this lock for the lock table information.boolean
unlock(Latch lockInGroup, int unlockCount)
-
-
-
Method Detail
-
getLockable
Lockable getLockable()
-
getLockControl
LockControl getLockControl()
-
getLock
Lock getLock(CompatibilitySpace compatibilitySpace, java.lang.Object qualifier)
-
shallowClone
Control shallowClone()
Clone this lock for the lock table information. Objects cloned will not be altered.
-
firstWaiter
ActiveLock firstWaiter()
-
isEmpty
boolean isEmpty()
-
unlock
boolean unlock(Latch lockInGroup, int unlockCount)
-
addWaiters
void addWaiters(java.util.Map<java.lang.Object,java.lang.Object> waiters)
-
getFirstGrant
Lock getFirstGrant()
-
getGranted
java.util.List getGranted()
-
getWaiting
java.util.List getWaiting()
-
isGrantable
boolean isGrantable(boolean otherWaiters, CompatibilitySpace compatibilitySpace, java.lang.Object qualifier)
-
-