eWON JTK

com.ewon.ewonitf
Class EventHandlerThread

java.lang.Object
  extended by com.ewon.ewonitf.EventHandlerThread
All Implemented Interfaces:
Runnable

public class EventHandlerThread
extends Object
implements Runnable

This runnable object designed to run the runEventManager in a thread.


Constructor Summary
EventHandlerThread(boolean autoRun)
          Creates a new instance of EventHandlerThread
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventHandlerThread

public EventHandlerThread(boolean autoRun)
Creates a new instance of EventHandlerThread

Parameters:
autoRun - If the autoRun flag is true, then the thread start automatally.

Otherwise, the runEventManagerInThread() function must be called manually.

Method Detail

run

public void run()
This function overides the Runnable 'run' function to allow thread execution.

It should not be called directly.

Specified by:
run in interface Runnable
See Also:
Thread.run()

runEventManagerInThread

public void runEventManagerInThread()
Call this function to create and launch the thread for the 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.


eWON JTK

www.eWON.biz: Your Eyes Watching Over Net