| java.lang.Object org.apache.derby.impl.services.locks.Lock
All known Subclasses: org.apache.derby.impl.services.locks.ActiveLock,
Lock | public class Lock implements Latch,Control(Code) | | A Lock represents a granted or waiting lock request.
MT - Mutable - Immutable identity : Thread Aware
|
getCompatabilitySpace | final public Object getCompatabilitySpace()(Code) | | Return the compatability space this lock is held in
MT - Thread safe
|
getCount | final public int getCount()(Code) | | Return the count of locks.
MT - Thread safe
|
getLockable | final public Lockable getLockable()(Code) | | Return the object this lock is held on
MT - Thread safe
|
getQualifier | final public Object getQualifier()(Code) | | Return the qualifier lock was obtained with.
MT - Thread safe
|
hashCode | final public int hashCode()(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | |
isGrantable | public boolean isGrantable(boolean noWaitersBeforeMe, Object compatabilitySpace, Object requestQualifier)(Code) | | |
shallowClone | public Control shallowClone()(Code) | | 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 | int unlock(int unlockCount)(Code) | | |
unlock | public boolean unlock(Latch lockInGroup, int unlockCount)(Code) | | |
|
|