|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.d_haven.event.command.AbstractThreadPolicy
org.d_haven.event.command.OneThreadPolicy
Created by IntelliJ IDEA. User: bloritsch Date: Jun 14, 2004 Time: 2:27:44 PM To change this template use File | Settings | File Templates.
| Constructor Summary | |
OneThreadPolicy()
|
|
| Method Summary | |
EventPipelineRunner |
createRunner(EventPipeline pipeline)
Create the EventPipelineRunner that will be used to get
events from the Sources to the EventHandler. |
protected void |
process(java.util.Collection pipelines)
Do the actual management logic that needs to be done in each time through the main loop. |
void |
setThreadFactory(EDU.oswego.cs.dl.util.concurrent.ThreadFactory factory)
Set the ThreadFactory for the policy to use. |
protected void |
startLoop()
Provide a hook to do further initialization when we start the management loop. |
java.lang.String |
toString()
|
| Methods inherited from class org.d_haven.event.command.AbstractThreadPolicy |
endLoop, executeLoop, isRunning, run, terminateLoop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public OneThreadPolicy()
| Method Detail |
public void setThreadFactory(EDU.oswego.cs.dl.util.concurrent.ThreadFactory factory)
ThreadPolicy
factory - the factory to usepublic EventPipelineRunner createRunner(EventPipeline pipeline)
ThreadPolicyEventPipelineRunner that will be used to get
events from the Sources to the EventHandler.
pipeline - the pipeline to run
protected void startLoop()
throws java.lang.InterruptedException
AbstractThreadPolicyAbstractThreadPolicy.run() method. This object is Runnable
so you can pass it in to a new thread.
startLoop in class AbstractThreadPolicyjava.lang.InterruptedException - if the calling thread is interrupted
protected void process(java.util.Collection pipelines)
throws java.lang.Exception
AbstractThreadPolicy
process in class AbstractThreadPolicypipelines - The pipelines to manage
java.lang.Exception - if there is a problem or the thread is
interruptedpublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||