java.lang.management
public class LockInfo extends Object
java.util.concurrent.locks.AbstractOwnableSynchronizer
),
or a Condition
object.Constructor and Description |
---|
LockInfo(String className,
int identityHashCode)
Constructs a new
LockInfo object with the
specified class name and identity hash code. |
Modifier and Type | Method and Description |
---|---|
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. |
@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.public String getClassName()
public int getIdentityHashCode()
public String toString()
'@'
and the identity hash code
in unsigned hexadecimal form.toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)