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 voidaddWaiters(java.util.Map<java.lang.Object,java.lang.Object> waiters)ActiveLockfirstWaiter()LockgetFirstGrant()java.util.ListgetGranted()LockgetLock(CompatibilitySpace compatibilitySpace, java.lang.Object qualifier)LockablegetLockable()LockControlgetLockControl()java.util.ListgetWaiting()booleanisEmpty()booleanisGrantable(boolean otherWaiters, CompatibilitySpace compatibilitySpace, java.lang.Object qualifier)ControlshallowClone()Clone this lock for the lock table information.booleanunlock(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)
-
-