APIdia Launch Partner
Top Description Methods
com.sun.jdi.event

public Interface ThreadDeathEvent

extends Event
Known Direct Implementers
com.sun.tools.jdi.EventSetImpl.ThreadDeathEventImpl
Imports
com.sun.jdi.ThreadReference, .VirtualMachine

Notification of a completed thread in the target VM. The notification is generated by the dying thread before it terminates. Because of this timing, it is possible for 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.

Author
Robert Field
Since
1.3
See Also
EventQueue, VirtualMachine, ThreadReference

Method Summary

Modifier and TypeMethod and Description
public ThreadReference

Returns:

a ThreadReference which mirrors the event's thread in the target VM.
thread
()

Returns the thread which is terminating.

Inherited from com.sun.jdi.event.Event:
request

Method Detail

threadback to summary
public ThreadReference thread()

Returns the thread which is terminating.

Returns:ThreadReference

a ThreadReference which mirrors the event's thread in the target VM.