|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.commons.concurrent.ExecutionFinishedEvent<T>
T - type of return valuepublic class ExecutionFinishedEvent<T>
Event that is sent when an asynchronous task finished.
This can mean:
If the task did not finish successfully, the thrown exception / error is rethrown when getResult() is
called.
| Method Summary | |
|---|---|
T |
getResult()
Returns the result value that the finished task returned. |
Callable<T> |
getTask()
Returns the corresponding task instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Callable<T> getTask()
public T getResult()
throws CancellationException,
Throwable
If the task produced an exception or error, it is rethrown here. If the task has been cancelled (usually this
means that the time out occurred), a CancellationException is thrown.
CancellationException - if task timed out / has been cancelled
Throwable - if task terminated with an exception or error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||