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