it.unipd.dei.ims.nestor.experiment.threads
Class GenerateThread

java.lang.Object
  extended by it.unipd.dei.ims.nestor.experiment.threads.GenerateThread

public class GenerateThread
extends java.lang.Object

Author:
silvello

Constructor Summary
GenerateThread()
           
 
Method Summary
static void startWorker(Task task, long timeout, java.util.concurrent.TimeUnit t)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenerateThread

public GenerateThread()
Method Detail

startWorker

public static void startWorker(Task task,
                               long timeout,
                               java.util.concurrent.TimeUnit t)
                        throws java.lang.Exception
Parameters:
task - The tak that has to be executed.
timeout - The timeout value after which the worker stops.
t - The time unit f timeout: e.g. seconds, hours, days
Throws:
java.lang.Exception