|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jena.atlas.lib.AlarmClock
public class AlarmClock
An AlarmClock is an object that will make a callback (with a value) at a preset time. Simple abstraction of add/reset/cancel of a Runnable. Currently, backed by ScheduledThreadPoolExecutor
| Method Summary | |
|---|---|
void |
add(Runnable task,
long delay)
Add a task to be called after a delay (in milliseconds) |
void |
cancel(Runnable task)
Cancel a task |
static AlarmClock |
get()
Global singleton for general use |
void |
release()
Clean up |
void |
reset(Runnable task,
long delay)
Reschedule a task to now run after a different delay from now (in milliseconds) |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AlarmClock get()
public void add(Runnable task,
long delay)
public void reset(Runnable task,
long delay)
public void cancel(Runnable task)
public void release()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||