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

Print this page




 110  * <LI>Only with other Monitor waited events for the same monitor object:
 111  *     <UL>
 112  *     <LI>Monitor Waited Event
 113  *     </UL>
 114  * <LI>Only with other members of this group, at the same location
 115  * and in the same thread:
 116  *     <UL>
 117  *     <LI>{@link BreakpointEvent}
 118  *     <LI>{@link StepEvent}
 119  *     <LI>{@link MethodEntryEvent}
 120  *     </UL>
 121  * </UL>
 122  *
 123  * @see Event
 124  * @see EventQueue
 125  *
 126  * @author Robert Field
 127  * @since  1.3
 128  */
 129 

 130 public interface EventSet extends Mirror, Set<Event> {
 131 
 132     /**
 133      * Returns the policy used to suspend threads in the target VM
 134      * for this event set. This policy is selected from the suspend
 135      * policies for each event's request; the target VM chooses the
 136      * policy which suspends the most threads.  The target VM
 137      * suspends threads according to that policy
 138      * and that policy is returned here. See
 139      * {@link com.sun.jdi.request.EventRequest} for the possible
 140      * policy values.
 141      * <p>
 142      * In rare cases, the suspend policy may differ from the requested
 143      * value if a {@link ClassPrepareEvent} has occurred in a
 144      * debugger system thread. See {@link ClassPrepareEvent#thread}
 145      * for details.
 146      *
 147      * @return the suspendPolicy which is either
 148      * {@link com.sun.jdi.request.EventRequest#SUSPEND_ALL SUSPEND_ALL},
 149      * {@link com.sun.jdi.request.EventRequest#SUSPEND_EVENT_THREAD SUSPEND_EVENT_THREAD} or




 110  * <LI>Only with other Monitor waited events for the same monitor object:
 111  *     <UL>
 112  *     <LI>Monitor Waited Event
 113  *     </UL>
 114  * <LI>Only with other members of this group, at the same location
 115  * and in the same thread:
 116  *     <UL>
 117  *     <LI>{@link BreakpointEvent}
 118  *     <LI>{@link StepEvent}
 119  *     <LI>{@link MethodEntryEvent}
 120  *     </UL>
 121  * </UL>
 122  *
 123  * @see Event
 124  * @see EventQueue
 125  *
 126  * @author Robert Field
 127  * @since  1.3
 128  */
 129 
 130 @jdk.Supported
 131 public interface EventSet extends Mirror, Set<Event> {
 132 
 133     /**
 134      * Returns the policy used to suspend threads in the target VM
 135      * for this event set. This policy is selected from the suspend
 136      * policies for each event's request; the target VM chooses the
 137      * policy which suspends the most threads.  The target VM
 138      * suspends threads according to that policy
 139      * and that policy is returned here. See
 140      * {@link com.sun.jdi.request.EventRequest} for the possible
 141      * policy values.
 142      * <p>
 143      * In rare cases, the suspend policy may differ from the requested
 144      * value if a {@link ClassPrepareEvent} has occurred in a
 145      * debugger system thread. See {@link ClassPrepareEvent#thread}
 146      * for details.
 147      *
 148      * @return the suspendPolicy which is either
 149      * {@link com.sun.jdi.request.EventRequest#SUSPEND_ALL SUSPEND_ALL},
 150      * {@link com.sun.jdi.request.EventRequest#SUSPEND_EVENT_THREAD SUSPEND_EVENT_THREAD} or