EventSets.
EventSets generated by the debugger back end can be read
here. There is one instance of EventQueue assigned to a particular
VirtualMachine.
Some events cause the suspension of the target VM - event requests
(com.) with a
suspend policy
of SUSPEND_ALL
or SUSPEND_EVENT_THREAD and sometimes VMStartEvent.
If these suspensions are not resumed the target VM will hang.
Thus, it is always good policy to
remove() every EventSet from the event queue until
an EventSet containing a VMDisconnectEvent is read.
Unless resume is
being handled in another way, each EventSet should invoke
EventSet#resume().
EventSet, VirtualMachine
| Modifier and Type | Method and Description |
|---|---|
| public EventSet | |
| public EventSet |
| remove | back to summary |
|---|---|
| public EventSet remove() throws InterruptedException Waits forever for the next available event.
| |
| remove | back to summary |
|---|---|
| public EventSet remove(long timeout) throws InterruptedException Waits a specified time for the next available event.
| |