com.samskivert.util
Class Interval.IntervalTask
java.lang.Object
java.util.TimerTask
com.samskivert.util.Interval.IntervalTask
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- Interval
protected static class Interval.IntervalTask
- extends TimerTask
The task that schedules actually runs the interval.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_runner
protected Interval.RunBuddy _runner
- If we are using a RunQueue, the Runnable we post to it.
_interval
protected Interval _interval
- The interval this task is for. We have this reference back to our interval rather
than just being a non-static inner class because when a TimerTask is cancelled
it still sits on the Timer's queue until its execution time is reached. We want
any references held by the interval to be collectable during this period, so our
cancel removes the reference back to the Interval.
Interval.IntervalTask
public Interval.IntervalTask(Interval interval)
cancel
public boolean cancel()
- Overrides:
cancel in class TimerTask
run
public void run()
- Specified by:
run in interface Runnable- Specified by:
run in class TimerTask
Copyright © 2000-2008 Michael Bayne.
All Rights Reserved.