public interface ThreadPolicy
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 runvoid executeLoop(ThreadManager manager) throws java.lang.InterruptedException
manager - the ThreadManager callingjava.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