com.flickrrecsys.util
Class ClearPerformedTasks

java.lang.Object
  extended by java.util.TimerTask
      extended by com.flickrrecsys.util.ClearPerformedTasks
All Implemented Interfaces:
java.lang.Runnable

public class ClearPerformedTasks
extends java.util.TimerTask

This class is used to clear out the performed task after a period of time it extends TimeTask where the task is scheduled

Author:
Hossein Ghodsi

Constructor Summary
ClearPerformedTasks(java.lang.String nsid, java.lang.String servletPath, java.util.Timer timer)
          The constructor set the variable passed to global variable
 
Method Summary
 void run()
           
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClearPerformedTasks

public ClearPerformedTasks(java.lang.String nsid,
                           java.lang.String servletPath,
                           java.util.Timer timer)
The constructor set the variable passed to global variable

Parameters:
nsid - user id from the flickr account
servletPath - where the properties file is located
timer - time to wait in millisecond
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Specified by:
run in class java.util.TimerTask