public abstract class Worker<T extends Result> extends Observable implements Runnable
| Constructor and Description |
|---|
Worker(OperationInvocation sourceInvocation) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
execute() |
WorkerException |
getException() |
String |
getHumanReadableStatus() |
float |
getProgress() |
T |
getResult() |
OperationInvocation |
getSourceInvocation() |
WorkerStatus |
getStatus() |
void |
run() |
protected void |
updateProgress(float progress,
String humanReadableStatus) |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic Worker(OperationInvocation sourceInvocation)
protected void updateProgress(float progress,
String humanReadableStatus)
protected abstract T execute() throws WorkerException
WorkerExceptionpublic float getProgress()
public String getHumanReadableStatus()
public WorkerException getException()
public T getResult()
public WorkerStatus getStatus()
public OperationInvocation getSourceInvocation()
Copyright © 2014. All Rights Reserved.