public abstract static class QueueTool.QueueAction
extends java.lang.Object
implements java.lang.Runnable
invoke(QueueAction)
execution process can be monitored by getResult()
,
getException()
, getFinished()
methods.Constructor and Description |
---|
QueueTool.QueueAction(java.lang.String description)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Action description.
|
java.lang.Exception |
getException()
Returns exception occured during action execution (if any).
|
boolean |
getFinished()
Informs whether action has been finished or not.
|
java.lang.Object |
getResult()
Returns action result if action has already been finished,
null otherwise.
|
abstract java.lang.Object |
launch()
Method to implement action functionality.
|
void |
run() |
public QueueTool.QueueAction(java.lang.String description)
description
- a description.public abstract java.lang.Object launch() throws java.lang.Exception
java.lang.Exception
public final void run()
run
in interface java.lang.Runnable
public java.lang.String getDescription()
public java.lang.Object getResult()
public java.lang.Exception getException()
launch()
method.public boolean getFinished()