| Modifier and Type | Method and Description |
|---|---|
static void |
cancelAll(String id)
Cancel all tasks having the specified
id. |
static void |
runTask(String id,
Runnable task,
long delay)
Store a new task in the map for providing cancellation.
|
public static void runTask(String id, Runnable task, long delay)
id - the identifier of the tasktask - the task itselfdelay - the delay or zero to run immediatelypublic static void cancelAll(String id)
id.id - the cancellation identifierCopyright © 2010–2020 simpligility technologies inc.. All rights reserved.