public class EventHandlerThread extends Object implements Runnable
runEventManager
in a thread.Constructor and Description |
---|
EventHandlerThread(boolean autoRun)
Creates a new instance of EventHandlerThread
|
Modifier and Type | Method and Description |
---|---|
void |
run()
This function overides the Runnable 'run' function to allow thread execution.
|
void |
runEventManagerInThread()
Call this function to create and launch the thread for the
DefaultEventHandler . |
public EventHandlerThread(boolean autoRun)
autoRun
- If the autoRun flag is true
, then the thread
start automatally.
Otherwise, the runEventManagerInThread()
function must be called
manually.
public void run()
It should not be called directly.
run
in interface Runnable
Thread.run()
public void runEventManagerInThread()
DefaultEventHandler
.
This function will create a thread and will call the DefaultEventHandler.runEventManager()
function in that thread.
You can also create the object with the autoRun
flag to one. In that case the runEventManagerInThread
is called at creation.