src/share/classes/com/sun/jdi/event/ThreadDeathEvent.java

Print this page




  28 import com.sun.jdi.*;
  29 
  30 /**
  31  * Notification of a completed thread in the target VM. The
  32  * notification is generated by the dying thread before it terminates.
  33  * Because of this timing, it is possible
  34  * for {@link VirtualMachine#allThreads} to return this thread
  35  * after this event is received.
  36  * <p>
  37  * Note that this event gives no information
  38  * about the lifetime of the thread object. It may or may not be collected
  39  * soon depending on what references exist in the target VM.
  40  *
  41  * @see EventQueue
  42  * @see VirtualMachine
  43  * @see ThreadReference
  44  *
  45  * @author Robert Field
  46  * @since  1.3
  47  */

  48 public interface ThreadDeathEvent extends Event {
  49     /**
  50      * Returns the thread which is terminating.
  51      *
  52      * @return a {@link ThreadReference} which mirrors the event's thread in
  53      * the target VM.
  54      */
  55     public ThreadReference thread();
  56 }


  28 import com.sun.jdi.*;
  29 
  30 /**
  31  * Notification of a completed thread in the target VM. The
  32  * notification is generated by the dying thread before it terminates.
  33  * Because of this timing, it is possible
  34  * for {@link VirtualMachine#allThreads} to return this thread
  35  * after this event is received.
  36  * <p>
  37  * Note that this event gives no information
  38  * about the lifetime of the thread object. It may or may not be collected
  39  * soon depending on what references exist in the target VM.
  40  *
  41  * @see EventQueue
  42  * @see VirtualMachine
  43  * @see ThreadReference
  44  *
  45  * @author Robert Field
  46  * @since  1.3
  47  */
  48 @jdk.Supported
  49 public interface ThreadDeathEvent extends Event {
  50     /**
  51      * Returns the thread which is terminating.
  52      *
  53      * @return a {@link ThreadReference} which mirrors the event's thread in
  54      * the target VM.
  55      */
  56     public ThreadReference thread();
  57 }