org.d_haven.event.command
public interface ThreadPolicy
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(ThreadFactory factory)
Set the ThreadFactory for the policy to use. |
void | terminateLoop()
Stops the management loop. |
Parameters: pipeline the pipeline to run
Returns: the EventPipelineRunner
Parameters: manager the ThreadManager calling
Throws: InterruptedException if the current thread is interrupted
Returns: true
if the management loop is running
Parameters: factory the factory to use
Throws: InterruptedException if the current thread is interrupted