de.jaetzold.art.platform.fischertechnik
Class Fischertechnik.CondenseEventsTask

java.lang.Object
  |
  +--de.jaetzold.art.platform.fischertechnik.Fischertechnik.CondenseEventsTask
All Implemented Interfaces:
Task
Enclosing class:
Fischertechnik

public class Fischertechnik.CondenseEventsTask
extends Object
implements Task

This Task tries to reduce the number of changes in the queue. It also generates DeliveryTasks for any remaining Events. Since this Task is in the same Queue as the Tasks which really deliver the events and only gets added to the Queue again after it added a DeliveryTask for each Event it always processes the whole Queue and then waits until all the DeliveryTasks are finished.


Constructor Summary
Fischertechnik.CondenseEventsTask()
           
 
Method Summary
 Event perform()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fischertechnik.CondenseEventsTask

public Fischertechnik.CondenseEventsTask()
Method Detail

perform

public Event perform()
              throws InterruptedException
Specified by:
perform in interface Task