| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| private final Object | qualifier
Qualifier used in the lock request.. |
| private final Lockable | ref
Object being locked. |
| private final CompatibilitySpace | space
Compatibility space the object is locked in. MT - immutable - reference only |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| pack-priv final Lock | |
| public final boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public ActiveLock | |
| public final CompatibilitySpace | getCompatabilitySpace()
Implements org. Return the compatibility space this lock is held in. MT - Thread safe |
| public final int | getCount()
Implements org. Return the count of locks. |
| public Lock | |
| public List | |
| public Lock | getLock(CompatibilitySpace compatibilitySpace, Object qualifier)
Implements org.
|
| public final Lockable | getLockable()
Implements org. Return the object this lock is held on MT - Thread safe |
| public LockControl | |
| public final Object | getQualifier()
Implements org. Return the qualifier lock was obtained with. |
| public List | |
| pack-priv void | |
| public final int | |
| public boolean | |
| public boolean | isGrantable(boolean noWaitersBeforeMe, CompatibilitySpace compatibilitySpace, Object requestQualifier)
Implements org.
|
| public Control | shallowClone()
Implements org. We can return ourselves here because our identity is immutable and what we returned will not be accessed as a Lock, so the count cannot be changed. |
| pack-priv int | |
| public boolean | unlock(Latch lockInGroup, int unlockCount)
Implements org.
|
| count | back to summary |
|---|---|
| pack-priv int count | |
| qualifier | back to summary |
|---|---|
| private final Object qualifier Qualifier used in the lock request.. MT - immutable - reference only | |
| ref | back to summary |
|---|---|
| private final Lockable ref Object being locked. MT - immutable - reference only | |
| space | back to summary |
|---|---|
| private final CompatibilitySpace space Compatibility space the object is locked in. MT - immutable - reference only | |
| Lock | back to summary |
|---|---|
| protected Lock(CompatibilitySpace space, Lockable ref, Object qualifier) | |
| addWaiters | back to summary |
|---|---|
| public void addWaiters(Map<K, V> waiters) Implements org. | |
| copy | back to summary |
|---|---|
| pack-priv final Lock copy() | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| firstWaiter | back to summary |
|---|---|
| public ActiveLock firstWaiter() Implements org. | |
| getCompatabilitySpace | back to summary |
|---|---|
| public final CompatibilitySpace getCompatabilitySpace() Implements org. Return the compatibility space this lock is held in. MT - Thread safe
| |
| getCount | back to summary |
|---|---|
| public final int getCount() Implements org. Return the count of locks. MT - Thread safe | |
| getFirstGrant | back to summary |
|---|---|
| public Lock getFirstGrant() Implements org. | |
| getGranted | back to summary |
|---|---|
| public List Implements org. | |
| getLock | back to summary |
|---|---|
| public Lock getLock(CompatibilitySpace compatibilitySpace, Object qualifier) Implements org. | |
| getLockable | back to summary |
|---|---|
| public final Lockable getLockable() Implements org. Return the object this lock is held on MT - Thread safe
| |
| getLockControl | back to summary |
|---|---|
| public LockControl getLockControl() Implements org. | |
| getQualifier | back to summary |
|---|---|
| public final Object getQualifier() Implements org. Return the qualifier lock was obtained with. MT - Thread safe
| |
| getWaiting | back to summary |
|---|---|
| public List Implements org. | |
| grant | back to summary |
|---|---|
| pack-priv void grant() | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements org. | |
| isGrantable | back to summary |
|---|---|
| public boolean isGrantable(boolean noWaitersBeforeMe, CompatibilitySpace compatibilitySpace, Object requestQualifier) Implements org. | |
| shallowClone | back to summary |
|---|---|
| public Control shallowClone() Implements org. We can return ourselves here because our identity is immutable and what we returned will not be accessed as a Lock, so the count cannot be changed. | |
| unlock | back to summary |
|---|---|
| pack-priv int unlock(int unlockCount) | |
| unlock | back to summary |
|---|---|
| public boolean unlock(Latch lockInGroup, int unlockCount) Implements org. | |