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.


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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

stop

public void stop()
Stop the runner nicely.


getSource

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

Returns:
the Source


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.