org.smallmind.seda
Class EventProcessor<I extends Event,O extends Event>

java.lang.Object
  extended by org.smallmind.seda.EventProcessor<I,O>
All Implemented Interfaces:
Runnable

public class EventProcessor<I extends Event,O extends Event>
extends Object
implements Runnable


Constructor Summary
EventProcessor(EventQueue<I> eventQueue, DurationMonitor durationMonitor, SedaConfiguration sedaConfiguration)
           
 
Method Summary
 double getActivePercentage()
           
 double getIdlePercentage()
           
protected  WorkMonitor getMonitor()
           
 boolean isRunning()
           
 void run()
           
protected  void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventProcessor

public EventProcessor(EventQueue<I> eventQueue,
                      DurationMonitor durationMonitor,
                      SedaConfiguration sedaConfiguration)
Method Detail

getMonitor

protected WorkMonitor getMonitor()

getIdlePercentage

public double getIdlePercentage()

getActivePercentage

public double getActivePercentage()

isRunning

public boolean isRunning()

stop

protected void stop()
             throws InterruptedException
Throws:
InterruptedException

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2011. All Rights Reserved.