Top Description Fields Methods
com.sun.jdi.request

public Interface ThreadDeathRequest

extends EventRequest
Known Direct Implementers
com.sun.tools.jdi.EventRequestManagerImpl.ThreadDeathRequestImpl
Imports
com.sun.jdi.ThreadReference, com.sun.jdi.event.EventQueue, .EventSet, .ThreadDeathEvent

Request for notification when a thread terminates in the target VM. When an enabled ThreadDeathRequest is satisfied, an event set containing a ThreadDeathEvent will be placed on the EventQueue. The collection of existing ThreadDeathRequests is managed by the EventRequestManager
Author
Robert Field
Since
1.3
See Also
ThreadDeathEvent, EventQueue, EventRequestManager

Field Summary

Inherited from com.sun.jdi.request.EventRequest:
SUSPEND_ALLSUSPEND_EVENT_THREADSUSPEND_NONE

Method Summary

Modifier and TypeMethod and Description
public default void
addPlatformThreadsOnlyFilter()

Restricts the events generated by this request to only platform threads.

public void
addThreadFilter(ThreadReference
the thread to filter on.
thread
)

Restricts the events generated by this request to those in the given thread.

Inherited from com.sun.jdi.request.EventRequest:
addCountFilterdisableenablegetPropertyisEnabledputPropertysetEnabledsetSuspendPolicysuspendPolicy

Method Detail

addPlatformThreadsOnlyFilterback to summary
public default void addPlatformThreadsOnlyFilter()

Restricts the events generated by this request to only platform threads.

Implementation Specification

The default implementation throws UnsupportedOperationException.

Exceptions
InvalidRequestStateException:
if this request is currently enabled or has been deleted
Since
21
addThreadFilterback to summary
public void addThreadFilter(ThreadReference thread)

Restricts the events generated by this request to those in the given thread.

Parameters
thread:ThreadReference

the thread to filter on.

Exceptions
InvalidRequestStateException:
if this request is currently enabled or has been deleted. Filters may be added only to disabled requests.