|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.excalibur.event.command.TPSPThreadManager.SourceRunner
protected static final class TPSPThreadManager.SourceRunner
The SourceRunner is used to dequeue events one at a time.
Field Summary | |
---|---|
private org.apache.excalibur.event.EventHandler |
m_handler
|
private boolean |
m_keepProcessing
|
private org.apache.excalibur.event.Source |
m_source
|
Constructor Summary | |
---|---|
protected |
TPSPThreadManager.SourceRunner(org.apache.excalibur.event.Source source,
org.apache.excalibur.event.EventHandler handler)
Create a new SourceRunner. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final org.apache.excalibur.event.Source m_source
private final org.apache.excalibur.event.EventHandler m_handler
private volatile boolean m_keepProcessing
Constructor Detail |
---|
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.Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
private static void yield()
public void stop()
public org.apache.excalibur.event.Source getSource()
Source
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |