Package | Description |
---|---|
java.lang.management |
Provides the management interfaces for monitoring and management of the
Java virtual machine and other components in the Java runtime.
|
Modifier and Type | Class and Description |
---|---|
class |
MonitorInfo
This class represents information about objects locked via
a synchronized method or block.
|
Modifier and Type | Method and Description |
---|---|
static LockInfo |
LockInfo.from(CompositeData compositeData)
Returns a
LockInfo object represented by the given
CompositeData . |
LockInfo[] |
ThreadInfo.getLockedSynchronizers()
Returns an array of
LockInfo objects, each one containing
information on an ownable synchronizer (a synchronizer that makes use of
the AbstractOwnableSynchronizer type and which is
completely owned by a single thread) locked by the Thread
corresponding to this ThreadInfo when it was instantiated. |
LockInfo |
ThreadInfo.getLockInfo()
If the thread corresponding to this
ThreadInfo is blocked
then this method returns a LockInfo object that contains details
of the associated lock object. |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.