APIdia Launch Partner
Top Description Fields Methods
com.sun.jdi.request

public Interface ThreadStartRequest

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

Request for notification when a thread starts execution in the target VM. When an enabled ThreadStartRequest is hit, an event set containing a ThreadStartEvent will be placed on the EventQueue. The collection of existing ThreadStartRequests is managed by the EventRequestManager
Author
Robert Field
Since
1.3
See Also
ThreadStartEvent, 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.