de.unihalle.informatik.Alida.workflows
Class ALDWorkflowEventManager

java.lang.Object
  extended by de.unihalle.informatik.Alida.workflows.ALDWorkflowEventManager
All Implemented Interfaces:
java.lang.Runnable

 class ALDWorkflowEventManager
extends java.lang.Object
implements java.lang.Runnable

Author:
posch

Field Summary
protected  java.util.concurrent.BlockingDeque<ALDWorkflowEvent> eventQueue
          The event queue associated with the listener
private  ALDWorkflowEventListener listener
          The listener for which to handle events
private  boolean termiate
          if true the thread is asked to terminate its run method
 
Constructor Summary
ALDWorkflowEventManager(ALDWorkflowEventListener listener)
           
 
Method Summary
protected  boolean isTermiate()
           
 void run()
           
protected  void setTermiate(boolean termiate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventQueue

protected final java.util.concurrent.BlockingDeque<ALDWorkflowEvent> eventQueue
The event queue associated with the listener


listener

private final ALDWorkflowEventListener listener
The listener for which to handle events


termiate

private boolean termiate
if true the thread is asked to terminate its run method

Constructor Detail

ALDWorkflowEventManager

public ALDWorkflowEventManager(ALDWorkflowEventListener listener)
Method Detail

isTermiate

protected boolean isTermiate()
Returns:
the terminate

run

public void run()
Specified by:
run in interface java.lang.Runnable

setTermiate

protected void setTermiate(boolean termiate)
Parameters:
termiate - the terminate state to set