public class AlarmClock extends Object
ScheduledThreadPoolExecutor| Modifier and Type | Method and Description |
|---|---|
Alarm |
add(Runnable task,
long delay)
Add a task to be called after a delay (in milliseconds)
|
void |
cancel(Alarm alarm)
Cancel a task
|
static AlarmClock |
get()
Global singleton for general use
|
void |
release()
Clean up
|
Alarm |
reset(Alarm alarm,
long delay)
Reschedule a task to now run after a different delay from now (in milliseconds)
|
public static AlarmClock get()
public Alarm add(Runnable task, long delay)
public Alarm reset(Alarm alarm, long delay)
public void cancel(Alarm alarm)
public void release()
Licenced under the Apache License, Version 2.0