Keel 2.1RC2

org.apache.excalibur.event.command
Class TPSPThreadManager.SourceRunner

java.lang.Object
  extended byorg.apache.excalibur.event.command.TPSPThreadManager.SourceRunner
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
TPSPThreadManager

protected static final class TPSPThreadManager.SourceRunner
extends java.lang.Object
implements java.lang.Runnable

The SourceRunner is used to dequeue events one at a time.


Field Summary
private  EventHandler m_handler
           
private  boolean m_keepProcessing
           
private  Source m_source
           
 
Constructor Summary
protected TPSPThreadManager.SourceRunner(Source source, EventHandler handler)
          Create a new SourceRunner.
 
Method Summary
 Source getSource()
          Get a reference to the Source.
 void run()
          Called by the PooledExecutor to ensure all components are working.
 void stop()
          Stop the runner nicely.
private static void yield()
          A way to make sure we yield the processor up to the next thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_source

private final Source m_source

m_handler

private final EventHandler m_handler

m_keepProcessing

private volatile boolean m_keepProcessing
Constructor Detail

TPSPThreadManager.SourceRunner

protected TPSPThreadManager.SourceRunner(Source source,
                                         EventHandler handler)
Create a new SourceRunner.

Parameters:
source - The source to pull events from.
handler - The handler to send events to.
Method Detail

run

public void run()
Called by the PooledExecutor to ensure all components are working.

Specified by:
run in interface java.lang.Runnable

yield

private static void yield()
A way to make sure we yield the processor up to the next thread.


stop

public void stop()
Stop the runner nicely.


getSource

public Source getSource()
Get a reference to the Source.

Returns:
the Source

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.