org.apache.excalibur.event.command
Class TPSPThreadManager.SourceRunner
java.lang.Object
org.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.
| 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 |
m_source
private final Source m_source
-
m_handler
private final EventHandler m_handler
-
m_keepProcessing
private volatile boolean m_keepProcessing
-
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.
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
Please see keelframework.org for information about new Keel releases.