public class Updater
extends java.lang.Thread
Constructor and Description |
---|
Updater() |
Modifier and Type | Method and Description |
---|---|
Command |
getCommand(long commandid)
Returns the command identified by command ID.
|
void |
insert(Command com)
Inserts the command into a new timer, which will run the command
according to that object's period and delay fields.
|
Command |
remove(Command com)
Allows the user to remove a command from auto-updating.
|
Command |
remove(long commandid) |
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public void insert(Command com)
com
- Command to be issued.public Command getCommand(long commandid)
commandid
- Command ID of target command.public Command remove(Command com)
com
- Command to remove.public Command remove(long commandid)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread