public class RunnableQueueItem extends Object implements Runnable
ThreadLauncherDaemon| Constructor and Description |
|---|
RunnableQueueItem(Runnable runnable,
String strKey,
Plugin plugin)
Creates a new
RunnableQueueItem |
| Modifier and Type | Method and Description |
|---|---|
protected String |
computeKey()
Compute the key of the item from its plugin name and the declared key.
|
String |
getKey()
Get the key that identifies the runnable.
|
Plugin |
getPlugin()
Get the plugin that created the runnable
|
Runnable |
getRunnable()
Get the runnable that is waiting for its execution
|
void |
run() |
public RunnableQueueItem(Runnable runnable, String strKey, Plugin plugin)
RunnableQueueItemrunnable - The runnable waiting to bet launchedstrKey - The key associated with 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 associated with the runnable queue itempublic Runnable getRunnable()
public String getKey()
public Plugin getPlugin()
protected String computeKey()
Copyright © 2016 City of Paris. All rights reserved.