ThreadReference (Java SE 19 & JDK 19) (original) (raw)

All Superinterfaces:

[Mirror](Mirror.html "interface in com.sun.jdi"), [ObjectReference](ObjectReference.html "interface in com.sun.jdi"), [Value](Value.html "interface in com.sun.jdi")


A thread object from the target VM. A ThreadReference is an ObjectReference with additional access to thread-specific information from the target VM.

Since:

1.3

Fields
static final int
Thread is waiting on a java monitor
static final int
Thread has not yet been started
static final int
static final int
static final int
static final int
static final int
Thread has completed execution

Returns an ObjectReference for the monitor, if any, for which this thread is currently waiting.
void
Force a method to return before it reaches a return statement.
[frame](#frame%28int%29)(int index)
Returns the StackFrame at the given index in the thread's current call stack.
int
Returns the number of stack frames in the thread's current call stack.
[frames](#frames%28%29)()
Returns a List containing each StackFrame in the thread's current call stack.
[frames](#frames%28int,int%29)(int start, int length)
Returns a List containing a range of StackFrame mirrors from the thread's current call stack.
void
[interrupt](#interrupt%28%29)()
Interrupts this thread unless the thread has been suspended by the debugger.
boolean
Determines whether the thread is suspended at a breakpoint.
boolean
Determines whether the thread has been suspended by the the debugger.
default boolean
[isVirtual](#isVirtual%28%29)()
[name](#name%28%29)()
Returns the name of this thread.
Returns a List containing an ObjectReference for each monitor owned by the thread.
Returns a List containing a MonitorInfo object for each monitor owned by the thread.
void
void
[resume](#resume%28%29)()
int
[status](#status%28%29)()
Returns the thread's status.
void
Stops this thread with an asynchronous exception.
void
[suspend](#suspend%28%29)()
int
Returns the number of pending suspends for this thread.
Returns this thread's thread group.

Methods declared in interface com.sun.jdi.ObjectReference

[disableCollection](ObjectReference.html#disableCollection%28%29), [enableCollection](ObjectReference.html#enableCollection%28%29), [entryCount](ObjectReference.html#entryCount%28%29), [equals](ObjectReference.html#equals%28java.lang.Object%29), [getValue](ObjectReference.html#getValue%28com.sun.jdi.Field%29), [getValues](ObjectReference.html#getValues%28java.util.List%29), [hashCode](ObjectReference.html#hashCode%28%29), [invokeMethod](ObjectReference.html#invokeMethod%28com.sun.jdi.ThreadReference,com.sun.jdi.Method,java.util.List,int%29), [isCollected](ObjectReference.html#isCollected%28%29), [owningThread](ObjectReference.html#owningThread%28%29), [referenceType](ObjectReference.html#referenceType%28%29), [referringObjects](ObjectReference.html#referringObjects%28long%29), [setValue](ObjectReference.html#setValue%28com.sun.jdi.Field,com.sun.jdi.Value%29), [uniqueID](ObjectReference.html#uniqueID%28%29), [waitingThreads](ObjectReference.html#waitingThreads%28%29)

Methods declared in interface com.sun.jdi.Value

[type](Value.html#type%28%29)