ThreadDeathRequest (Java SE 19 & JDK 19) (original) (raw)
All Superinterfaces:
[EventRequest](EventRequest.html "interface in com.sun.jdi.request")
, [Mirror](../Mirror.html "interface in com.sun.jdi")
public interface ThreadDeathRequestextends EventRequest
Request for notification when a thread terminates in the target VM. When an enabled ThreadDeathRequest is satisfied, anevent set containing aThreadDeathEvent will be placed on theEventQueue. The collection of existing ThreadDeathRequests is managed by the EventRequestManager
Since:
1.3
See Also:
Field Summary
Method Summary
default void
Preview.
Restricts the events generated by this request to onlyplatform threads.void
Restricts the events generated by this request to those in the given thread.
Method Details
addThreadFilter
Restricts the events generated by this request to those in the given thread.
Parameters:
thread
- the thread to filter on.
Throws:
[InvalidRequestStateException](InvalidRequestStateException.html "class in com.sun.jdi.request")
- if this request is currently enabled or has been deleted. Filters may be added only to disabled requests.addPlatformThreadsOnlyFilter
default void addPlatformThreadsOnlyFilter()
addPlatformThreadsOnlyFilter
is a reflective preview API of the Java platform.
Restricts the events generated by this request to onlyplatform threads.
Implementation Requirements:
The default implementation throwsUnsupportedOperationException
.
Throws:
[InvalidRequestStateException](InvalidRequestStateException.html "class in com.sun.jdi.request")
- if this request is currently enabled or has been deleted
Since:
19