All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.tools.resources.event.ResourceEventQueue

java.lang.Object
   |
   +----org.w3c.tools.resources.event.ResourceEventQueue

public class ResourceEventQueue
extends Object

Variable Index

 o debug

Constructor Index

 o ResourceEventQueue()

Method Index

 o getNextEvent()
Get the next Event in the queue, wait if there is no event available in the queue.
 o removeSourceEvents(Object)
Remove all the Events comming from the given source object.
 o sendEvent(ResourceEvent)
Send a ResourceEvent in the queue.

Variables

 o debug
 protected boolean debug

Constructors

 o ResourceEventQueue
 public ResourceEventQueue()

Methods

 o sendEvent
 public synchronized void sendEvent(ResourceEvent evt)
Send a ResourceEvent in the queue.

Parameters:
evt - The Resource Event to put in the queue.
 o getNextEvent
 public synchronized ResourceEvent getNextEvent() throws InterruptedException
Get the next Event in the queue, wait if there is no event available in the queue.

Returns:
a ResourceEvent instance.
Throws: InterruptedException
Is unable to get the next event due to some interruption.
 o removeSourceEvents
 public synchronized void removeSourceEvents(Object source)
Remove all the Events comming from the given source object.

Parameters:
source - The Object where the events to remove are comming from.

All Packages  Class Hierarchy  This Package  Previous  Next  Index