| Modifier and Type | Method and Description |
|---|---|
ObjectReference |
monitor()
Returns the
ObjectReference object for the monitor. |
int |
stackDepth()
Returns the stack depth at which this monitor was
acquired by the owning thread.
|
ThreadReference |
thread()
Returns a
ThreadReference object for the thread that
owns the monitor. |
toString, virtualMachineObjectReference monitor()
ObjectReference object for the monitor.ObjectReference object for the monitor.InvalidStackFrameException - if the associated stack
frame has become invalid. Once the frame's thread is resumed,
the stack frame is no longer valid.ThreadReference.ownedMonitorsAndFrames()int stackDepth()
InvalidStackFrameException - if the associated stack
frame has become invalid. Once the frame's thread is resumed,
the stack frame is no longer valid.ThreadReference.ownedMonitorsAndFrames()ThreadReference thread()
ThreadReference object for the thread that
owns the monitor.ThreadReference object for the thread that
owns the monitor.InvalidStackFrameException - if the associated stack
frame has become invalid. Once the frame's thread is resumed,
the stack frame is no longer valid.ThreadReference.frame(int)
Copyright © 1999, 2017, Oracle and/or its affiliates. All rights reserved.