RESULT_FAILED, RESULT_PROCESSING, RESULT_SUCCESS, RESULT_UNKNOWN, STATUS_RUNNING, STATUS_STOPPED
Constructor and Description |
---|
ThreadLauncherDaemon() |
Modifier and Type | Method and Description |
---|---|
static void |
addItemToQueue(Runnable runnable,
String strKey,
Plugin plugin)
Add a runnable to the launch queue.
|
static Integer |
countItemsInQueue()
Count the number of items in the queue.
|
void |
run() |
getLastRunLogs, getPluginName, getResult, setLastRunLogs, setPluginName, setResult
public void run()
public static void addItemToQueue(Runnable runnable, String strKey, Plugin plugin)
runnable
- The runnable to executestrKey
- The key of the runnable. Runnables of a given plugin are ensured that they will not be executed at the same time if they have the same key.plugin
- The plugin the runnable is associated withpublic static Integer countItemsInQueue()
Copyright © 2020 City of Paris. All rights reserved.