java.lang.Object
java.lang.Thread
Freenet.support.Ticker
- All Implemented Interfaces:
- java.lang.Runnable
- public class Ticker
- extends java.lang.Thread
This class allows a callback to be called after a specified
amount of time.
Nested classes inherited from class java.lang.Thread |
java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
(package private) long |
ticker
|
(package private) TLL |
tll
|
Method Summary |
void |
add(long id,
long time,
Callback cb)
Adds a callback |
Callback |
cancel(long id)
Cancels a callback |
static void |
main(java.lang.String[] args)
|
void |
run()
The method of Thread that will be run if there is no Runnable object
associated with the Thread. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
tll
TLL tll
ticker
long ticker
Ticker
public Ticker()
Ticker
public Ticker(long ticker)
main
public static void main(java.lang.String[] args)
add
public void add(long id,
long time,
Callback cb)
- Adds a callback
cancel
public Callback cancel(long id)
- Cancels a callback
run
public void run()
- Description copied from class:
java.lang.Thread
- The method of Thread that will be run if there is no Runnable object
associated with the Thread. Thread's implementation does nothing at all.