protected static final class TPSPThreadManager.SourceRunner
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
private org.apache.excalibur.event.EventHandler |
m_handler |
private boolean |
m_keepProcessing |
private org.apache.excalibur.event.Source |
m_source |
| Modifier | Constructor and Description |
|---|---|
protected |
TPSPThreadManager.SourceRunner(org.apache.excalibur.event.Source source,
org.apache.excalibur.event.EventHandler handler)
Create a new SourceRunner.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.excalibur.event.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.
|
private final org.apache.excalibur.event.Source m_source
private final org.apache.excalibur.event.EventHandler m_handler
private volatile boolean m_keepProcessing
protected TPSPThreadManager.SourceRunner(org.apache.excalibur.event.Source source,
org.apache.excalibur.event.EventHandler handler)
source - The source to pull events from.handler - The handler to send events to.public void run()
run in interface java.lang.Runnableprivate static void yield()
public void stop()
public org.apache.excalibur.event.Source getSource()
Source