public interface

MonitorInfo

implements Mirror
com.sun.jdi.MonitorInfo
Known Indirect Subclasses

Class Overview

Information about a monitor owned by a thread.

Summary

Public Methods
abstract ObjectReference monitor()
Returns the ObjectReference object for the monitor.
abstract int stackDepth()
Returns the stack depth at which this monitor was acquired by the owning thread.
abstract ThreadReference thread()
Returns a ThreadReference object for the thread that owns the monitor.
[Expand]
Inherited Methods
From interface com.sun.jdi.Mirror

Public Methods

public abstract ObjectReference monitor ()

Returns the ObjectReference object for the monitor.

Returns
Throws
InvalidStackFrameException if the associated stack frame has become invalid. Once the frame's thread is resumed, the stack frame is no longer valid.

public abstract int 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).

Returns
  • the stack depth at which this monitor was acquired by the owning thread.
Throws
InvalidStackFrameException if the associated stack frame has become invalid. Once the frame's thread is resumed, the stack frame is no longer valid.

public abstract ThreadReference thread ()

Returns a ThreadReference object for the thread that owns the monitor.

Returns
Throws
InvalidStackFrameException if the associated stack frame has become invalid. Once the frame's thread is resumed, the stack frame is no longer valid.
See Also