public class Task extends Object
endTimeMs
automatically set when observable is done.Modifier and Type | Field and Description |
---|---|
String |
id |
String |
name |
ProgressObservable |
observable |
Constructor and Description |
---|
Task(String id,
String name,
ProgressObservable observable) |
Modifier and Type | Method and Description |
---|---|
Long |
getEndTimeMs() |
Long |
getStartTimeMs() |
void |
start()
Sets
startTimeMs to current time |
public final String id
public final String name
public final ProgressObservable observable
public Task(String id, String name, ProgressObservable observable)
public void start()
startTimeMs
to current timepublic Long getStartTimeMs()
null
if hasn't been started yet.public Long getEndTimeMs()
null
if hasn't been ended yet.