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 |
---|---|
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)
RunnableQueueItem
runnable
- 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()
Copyright © 2020 City of Paris. All rights reserved.