- All Superinterfaces:
public interface MonitorInfo extends Mirror
Information about a monitor owned by a thread.
monitorObjectReference monitor()Returns the
ObjectReferenceobject for the monitor.
stackDepthint stackDepth()Returns the stack depth at which this monitor was acquired by the owning thread. Returns -1 if the implementation cannot determine the stack depth (e.g., for monitors acquired by JNI MonitorEnter).
threadThreadReference thread()Returns a
ThreadReferenceobject for the thread that owns the monitor.