Spec-Zone .ru
спецификации, руководства, описания, API
Java Debug Interface

com.sun.jdi.event
Interface EventQueue

All Superinterfaces:
Mirror

public interface EventQueue
extends Mirror

Manager of incoming debugger events for a target VM. Events are always grouped in EventSets. EventSets generated by the debugger back end can be read here. There is one instance of EventQueue assigned to a particular VirtualMachine.

Since:
1.3
See Also:
EventSet, VirtualMachine

Method Summary
 EventSet remove()
          Waits forever for the next available event.
 EventSet remove(long timeout)
          Waits a specified time for the next available event.
 
Methods inherited from interface com.sun.jdi.Mirror
toString, virtualMachine
 

Method Detail

remove

public EventSet remove()
                throws InterruptedException
Waits forever for the next available event.
Returns:
the next EventSet.
Throws:
InterruptedException - if another 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.

remove

public EventSet 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 another 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.

Java Debug Interface