net.grinder.testutility
Class StubTimer

java.lang.Object
  extended by java.util.Timer
      extended by net.grinder.testutility.StubTimer

public final class StubTimer
extends Timer

Stub implementation of Timer.

Author:
Philip Aston

Constructor Summary
StubTimer()
           
 
Method Summary
 long getLastDelay()
           
 long getLastPeriod()
           
 TimerTask getLastScheduledTimerTask()
           
 TimerTask getTaskByPeriod(long period)
           
 void schedule(TimerTask timerTask, long delay)
           
 void schedule(TimerTask timerTask, long delay, long period)
           
 
Methods inherited from class java.util.Timer
cancel, purge, schedule, schedule, scheduleAtFixedRate, scheduleAtFixedRate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StubTimer

public StubTimer()
Method Detail

schedule

public void schedule(TimerTask timerTask,
                     long delay,
                     long period)
Overrides:
schedule in class Timer

schedule

public void schedule(TimerTask timerTask,
                     long delay)
Overrides:
schedule in class Timer

getLastScheduledTimerTask

public TimerTask getLastScheduledTimerTask()

getLastDelay

public long getLastDelay()

getLastPeriod

public long getLastPeriod()

getTaskByPeriod

public TimerTask getTaskByPeriod(long period)


Copyright © 2000-2012. All Rights Reserved.