Type
- the return type of the FutureTaskpublic class Task<Type> extends java.util.concurrent.FutureTask<Type>
Constructor and Description |
---|
Task(java.util.concurrent.Callable<Type> c) |
Task(java.lang.String name,
java.util.concurrent.Callable<Type> c) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the task's name
|
float |
getProgress()
Gets the task's progress
|
void |
onCompletion(java.lang.Runnable r) |
protected void |
set(Type ret) |
void |
setName(java.lang.String name)
Sets the task's name
|
public void onCompletion(java.lang.Runnable r)
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the new task's name, for presentation purposespublic float getProgress()