public interface ThreadDeathEvent extends Event
VirtualMachine.allThreads()
to return this thread after this event is received. Note that this event gives no information about the lifetime of the thread object. It may or may not be collected soon depending on what references exist in the target VM.
Modifier and Type | Method | Description |
---|---|---|
ThreadReference |
thread() |
Returns the thread which is terminating. |
toString, virtualMachine
ThreadReference thread()
ThreadReference
which mirrors the event's thread in the target VM.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.jdi/com/sun/jdi/event/ThreadDeathEvent.html