|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.management.LockInfo
public class LockInfo
Provides information on a lock held by a thread.
A lock can be either a built-in monitor, an
java.util.concurrent.locks.AbstractOwnableSynchronizer),
or a Condition
object.
| Constructor Summary | |
|---|---|
LockInfo(String className,
int identityHashCode)
Constructs a new LockInfo object with the
specified class name and identity hash code. |
|
| Method Summary | |
|---|---|
String |
getClassName()
Returns the class name of the lock object. |
int |
getIdentityHashCode()
Returns the identity hash code of the lock object. |
String |
toString()
Returns a textual representation of the lock, constructed by concatenating the class name, '@' and the identity hash code
in unsigned hexadecimal form. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@ConstructorProperties(value={"className","identityHashCode"})
public LockInfo(String className,
int identityHashCode)
LockInfo object with the
specified class name and identity hash code.
className - the name of the class of the lock object.identityHashCode - the identity hash code of the
lock object.| Method Detail |
|---|
public String getClassName()
public int getIdentityHashCode()
public String toString()
'@' and the identity hash code
in unsigned hexadecimal form.
toString in class ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||