public class UpdateQueue extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
sleep |
Modifier | Constructor and Description |
---|---|
protected |
UpdateQueue() |
Modifier and Type | Method and Description |
---|---|
void |
addRunnable(String id,
Runnable runnable)
Add a new runnable to a map along with a unique id
The last update runnable of an id will be executed only. |
static UpdateQueue |
getInstance() |
void |
stopThread() |
public static UpdateQueue getInstance()
public void addRunnable(String id, Runnable runnable)
id
- runnable
- public void stopThread()
Copyright © 2013. All Rights Reserved.