|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThreadPolicy
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 |
---|
void setThreadFactory(EDU.oswego.cs.dl.util.concurrent.ThreadFactory factory)
factory
- the factory to useEventPipelineRunner createRunner(EventPipeline pipeline)
EventPipelineRunner
that will be used to get
events from the Sources to the EventHandler.
pipeline
- the pipeline to run
void executeLoop(ThreadManager manager) throws java.lang.InterruptedException
manager
- the ThreadManager calling
java.lang.InterruptedException
- if the current thread is interruptedvoid terminateLoop() throws java.lang.InterruptedException
java.lang.InterruptedException
- if the current thread is interruptedboolean isRunning()
true
if the management loop is running
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |