| java.lang.Object org.deegree.framework.concurrent.ExecutionFinishedEvent
ExecutionFinishedEvent | public class ExecutionFinishedEvent (Code) | | Event that is sent when asynchronous task finished.
This can mean:
- it finished successfully
- it terminated abnormally (with an exception or error)
- a time out occurred during the performing of the task (or it's thread has been
cancelled)
If the task did not finish successfully, the thrown exception / error is rethrown when
ExecutionFinishedEvent.getResult() is called.
author: Andreas Poth author: Markus Schneider author: last edited by: $Author: apoth $ version: $Revision: 9339 $, $Date: 2007-12-27 04:31:52 -0800 (Thu, 27 Dec 2007) $< Parameters: T - > type of return value |
Method Summary | |
public T | getResult() Returns the result value that the finished task returned.
If the task produced an exception or error, it is rethrown here. | public Callable | getTask() Returns the corresponding task instance. |
ExecutionFinishedEvent | ExecutionFinishedEvent(Callable task, T result)(Code) | | Constructs an ExecutionFinishedEvent for a task that finished
successfully.
Parameters: task - Parameters: result - |
ExecutionFinishedEvent | ExecutionFinishedEvent(Throwable t, Callable task)(Code) | | Constructs an ExecutionFinishedEvent for a task that terminated
abnormally.
Parameters: t - Throwable that the terminated task threw Parameters: task - |
getResult | public T getResult() throws CancellationException, Throwable(Code) | | Returns the result value that the finished task returned.
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.
the result value that the task returned throws: CancellationException - if task timed out / has been cancelled throws: Throwable - if task terminated with an exception or error |
getTask | public Callable getTask()(Code) | | Returns the corresponding task instance.
the corresponding task instance |
|
|