de.unima.alcomox.util
Class ThreadTimer

java.lang.Object
  extended by de.unima.alcomox.util.ThreadTimer

public class ThreadTimer
extends java.lang.Object

Author:
Dominique Ritze

Constructor Summary
ThreadTimer(java.lang.Thread thread, long intervalInMilliSeconds)
          Constructor for a thread.
 
Method Summary
 void setConcurrentExecution(boolean concurrentExecution)
          Disable the concurrent execution of the "own" thread and the regular application thread.
 void start()
          Method to start the timer, which will kill the thread after a specified period of time if no result deliviered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadTimer

public ThreadTimer(java.lang.Thread thread,
                   long intervalInMilliSeconds)
Constructor for a thread.

Parameters:
thread -
intervalInMilliSeconds -
Method Detail

start

public void start()
Method to start the timer, which will kill the thread after a specified period of time if no result deliviered.


setConcurrentExecution

public void setConcurrentExecution(boolean concurrentExecution)
Disable the concurrent execution of the "own" thread and the regular application thread.

Parameters:
concurrentExecution -