Class RunnableQueueItem
- java.lang.Object
-
- fr.paris.lutece.portal.service.daemon.RunnableQueueItem
-
- All Implemented Interfaces:
java.lang.Runnable
public class RunnableQueueItem extends java.lang.Object implements java.lang.RunnableRepresents a runnable waiting to be launched by theThreadLauncherDaemon
-
-
Constructor Summary
Constructors Constructor Description RunnableQueueItem(java.lang.Runnable runnable, java.lang.String strKey, Plugin plugin)Creates a newRunnableQueueItem
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetKey()Get the key that identifies the runnable.PlugingetPlugin()Get the plugin that created the runnablejava.lang.RunnablegetRunnable()Get the runnable that is waiting for its executionvoidrun()
-
-
-
Constructor Detail
-
RunnableQueueItem
public RunnableQueueItem(java.lang.Runnable runnable, java.lang.String strKey, Plugin plugin)Creates a newRunnableQueueItem- Parameters:
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 item
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
getRunnable
public java.lang.Runnable getRunnable()
Get the runnable that is waiting for its execution- Returns:
- The runnable
-
getKey
public java.lang.String getKey()
Get the key that identifies the runnable.- Returns:
- the key of the runnable
-
getPlugin
public Plugin getPlugin()
Get the plugin that created the runnable- Returns:
- The plugin that created the runnable
-
-