- 
- All Superinterfaces:
- Mirror
 
 public interface EventQueue extends Mirror Manager of incoming debugger events for a target VM. Events are always grouped inEventSets. EventSets generated by the debugger back end can be read here. There is one instance of EventQueue assigned to a particularVirtualMachine.Some events cause the suspension of the target VM - event requests ( com.sun.jdi.request) with asuspend policyofSUSPEND_ALLorSUSPEND_EVENT_THREADand sometimesVMStartEvent. If these suspensions are not resumed the target VM will hang. Thus, it is always good policy toremove()every EventSet from the event queue until an EventSet containing aVMDisconnectEventis read. Unlessresumeis being handled in another way, each EventSet should invokeEventSet.resume().- Since:
- 1.3
- See Also:
- EventSet,- VirtualMachine
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description EventSetremove()Waits forever for the next available event.EventSetremove(long timeout)Waits a specified time for the next available event.- 
Methods declared in interface com.sun.jdi.MirrortoString, virtualMachine
 
- 
 
- 
- 
- 
Method Detail- 
removeEventSet remove() throws InterruptedException Waits forever for the next available event.- Returns:
- the next EventSet.
- Throws:
- InterruptedException- if any thread has interrupted this thread.
- VMDisconnectedException- if the connection to the target VM is no longer available. Note this will always be preceded by a- VMDisconnectEvent.
 
 - 
removeEventSet remove(long timeout) throws InterruptedException Waits a specified time for the next available event.- Parameters:
- timeout- Time in milliseconds to wait for the next event
- Returns:
- the next EventSet, or null if there is a timeout.
- Throws:
- InterruptedException- if any thread has interrupted this thread.
- VMDisconnectedException- if the connection to the target VM is no longer available. Note this will always be preceded by a- VMDisconnectEvent.
- IllegalArgumentException- if the timeout argument contains an illegal value.
 
 
- 
 
-