| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class LockInfo extends Object
Information about a lock. A lock can be a built-in object monitor, an ownable synchronizer, or the {@link Condition Condition} object associated with synchronizers.
An ownable synchronizer is a synchronizer that may be exclusively owned by a thread and uses {@link AbstractOwnableSynchronizer AbstractOwnableSynchronizer} (or its subclass) to implement its synchronization property. {@link ReentrantLock ReentrantLock} and {@link ReentrantReadWriteLock ReentrantReadWriteLock} are two examples of ownable synchronizers provided by the platform.
Constructor Summary | |
---|---|
Constructs a LockInfo object. |
Method Summary | |
---|---|
String |
Returns the fully qualified name of the class of the lock object. |
int |
Returns the identity hash code of the lock object returned from the java.lang.System.identityHashCode method. |
String |
toString() Returns a string representation of a lock. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LockInfo(String className, int identityHashCode)
className
- the fully qualified name of the class of the lock object.identityHashCode
- the {@link System#identityHashCode
identity hash code} of the lock object.Method Detail |
---|
public String getClassName()
public int getIdentityHashCode()
public String toString()
where lock is the lock object.lock.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(lock))
toString
in class Object
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |