Event
objects may be created at a given time by
the target VirtualMachine
. For example, there may be
more than one BreakpointRequest
for a given Location
or you might single step to the same location as a
BreakpointRequest. These Event
objects are delivered
together as an EventSet. For uniformity, an EventSet is always used
to deliver Event
objects. EventSets are delivered by
the EventQueue
.
EventSets are unmodifiable.
Associated with the issuance of an event set, suspensions may
have occurred in the target VM. These suspensions correspond
with the suspend policy
.
To assure matching resumes occur, it is recommended,
where possible,
to complete the processing of an event set with
EventSet.
.
The events that are grouped in an EventSet are restricted in the following ways:
Event
, EventQueue
Modifier and Type | Method and Description |
---|---|
public EventIterator | |
public void | |
public int |
eventIterator | back to summary |
---|---|
public EventIterator eventIterator() Return an iterator specific to |
resume | back to summary |
---|---|
public void resume() Resumes threads suspended by this event set. If the |
suspendPolicy | back to summary |
---|---|
public int suspendPolicy() Returns the policy used to suspend threads in the target VM
for this event set. This policy is selected from the suspend
policies for each event's request; the target VM chooses the
policy which suspends the most threads. The target VM suspends
threads according to that policy and that policy is returned here.
See
In rare cases, the suspend policy may differ from the requested
value if a
|