jdk/src/jdk.jdi/share/classes/com/sun/jdi/request/VMDeathRequest.java
changeset 45564 0149773a140c
parent 34894 3248b89d1921
equal deleted inserted replaced
45563:ece4ae6beba3 45564:0149773a140c
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 
    25 
    26 package com.sun.jdi.request;
    26 package com.sun.jdi.request;
    27 
    27 
    28 import com.sun.jdi.*;
    28 import com.sun.jdi.event.EventQueue;
       
    29 import com.sun.jdi.event.EventSet;
       
    30 import com.sun.jdi.event.VMDeathEvent;
    29 
    31 
    30 /**
    32 /**
    31  * Request for notification when the target VM terminates.
    33  * Request for notification when the target VM terminates.
    32  * When an enabled VMDeathRequest is satisfied, an
    34  * When an enabled VMDeathRequest is satisfied, an
    33  * {@link com.sun.jdi.event.EventSet event set} containing a
    35  * {@link EventSet event set} containing a
    34  * {@link com.sun.jdi.event.VMDeathEvent VMDeathEvent}
    36  * {@link VMDeathEvent VMDeathEvent}
    35  * will be placed on the
    37  * will be placed on the {@link EventQueue EventQueue}.
    36  * {@link com.sun.jdi.event.EventQueue EventQueue}.
       
    37  * The collection of existing VMDeathRequests is
    38  * The collection of existing VMDeathRequests is
    38  * managed by the {@link EventRequestManager}
    39  * managed by the {@link EventRequestManager}
    39  * <P>
    40  * <P>
    40  * Even without creating a VMDeathRequest, a single
    41  * Even without creating a VMDeathRequest, a single
    41  * unsolicited VMDeathEvent will be sent with a
    42  * unsolicited VMDeathEvent will be sent with a
    47  * will be sent.  This event can be used to assure
    48  * will be sent.  This event can be used to assure
    48  * completion of any processing which requires the VM
    49  * completion of any processing which requires the VM
    49  * to be alive (e.g. event processing).  Note: the
    50  * to be alive (e.g. event processing).  Note: the
    50  * unsolicited VMDeathEvent will still be sent.
    51  * unsolicited VMDeathEvent will still be sent.
    51  *
    52  *
    52  * @see com.sun.jdi.event.VMDeathEvent
    53  * @see VMDeathEvent
    53  * @see com.sun.jdi.event.EventQueue
    54  * @see EventQueue
    54  * @see EventRequestManager
    55  * @see EventRequestManager
    55  *
    56  *
    56  * @author Robert Field
    57  * @author Robert Field
    57  * @since  1.4
    58  * @since  1.4
    58  */
    59  */
    59 public interface VMDeathRequest extends EventRequest {
    60 public interface VMDeathRequest extends EventRequest {
    60 
       
    61 }
    61 }