Constructor and Description |
---|
Ticker(long interval)
A Ticker that, when started, fires every INTERVAL milliseconds, or
never, if interval <= 0.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public Ticker(long interval)