|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.service.daemon.RunnableQueueItem
public class RunnableQueueItem
Represents a runnable waiting to be launched by the
ThreadLauncherDaemon
| Constructor Summary | |
|---|---|
RunnableQueueItem(Runnable runnable,
String strKey,
Plugin plugin)
Creates a new RunnableQueueItem |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 item| Method Detail |
|---|
public void run()
run in interface Runnablepublic Runnable getRunnable()
public String getKey()
public Plugin getPlugin()
protected String computeKey()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||