de.scheisseichfindemalkeinen.pic
Class CalculateRateTimerTask

java.lang.Object
  extended by java.util.TimerTask
      extended by de.scheisseichfindemalkeinen.pic.CalculateRateTimerTask
All Implemented Interfaces:
java.lang.Runnable

public class CalculateRateTimerTask
extends java.util.TimerTask

This timer sets a flag in the Pic to true, causing the Pic to recalculate the downloadrate. The is used to, recalculate the downloadrate only each 10 seconds.


Constructor Summary
CalculateRateTimerTask(Pic pic)
          Constructor
 
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

CalculateRateTimerTask

public CalculateRateTimerTask(Pic pic)
Constructor

Parameters:
pic - Pic
Method Detail

run

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