|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ThreadPolicy is used to control how the EventPipelineRunner is set up, and how new threads are created and destroyed over the life of the system.
Method Summary | |
EventPipelineRunner |
createRunner(EventPipeline pipeline)
Create the EventPipelineRunner that will be used to get
events from the Sources to the EventHandler. |
void |
executeLoop(ThreadManager manager)
Execute the management loop. |
boolean |
isRunning()
Provides a way to tell if the management loop is currently running or not. |
void |
setThreadFactory(EDU.oswego.cs.dl.util.concurrent.ThreadFactory factory)
Set the ThreadFactory for the policy to use. |
void |
terminateLoop()
Stops the management loop. |
Method Detail |
public void setThreadFactory(EDU.oswego.cs.dl.util.concurrent.ThreadFactory factory)
factory
- the factory to usepublic EventPipelineRunner createRunner(EventPipeline pipeline)
EventPipelineRunner
that will be used to get
events from the Sources to the EventHandler.
pipeline
- the pipeline to run
public void executeLoop(ThreadManager manager) throws java.lang.InterruptedException
manager
- the ThreadManager calling
java.lang.InterruptedException
- if the current thread is interruptedpublic void terminateLoop() throws java.lang.InterruptedException
java.lang.InterruptedException
- if the current thread is interruptedpublic boolean isRunning()
true
if the management loop is running
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |