|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ucb.util.Ticker
public abstract class Ticker
A simple timer class that periodically performs some action
Constructor Summary | |
---|---|
Ticker(long interval)
A Ticker that, when started, fires every INTERVAL milliseconds, or never, if interval <= 0. |
Method Summary | |
---|---|
void |
close()
Permanently stop THIS and terminate its thread. |
void |
run()
Internal method. |
void |
start()
Start ticking, executing tick () at each tick. |
void |
stop()
Stop ticking. |
protected abstract void |
tick()
Action to perform on each clock tick. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Ticker(long interval)
Method Detail |
---|
public void start()
public void stop()
public void close()
protected abstract void tick()
public void run()
run
in interface Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |