| 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.framework.concurrent.ExecutionFinishedEvent<T>
T - type of return valuepublic class ExecutionFinishedEvent<T>
Event that is sent when asynchronous task finished.
This can mean:
 If the task did not finish successfully, the thrown exception / error is rethrown when
 getResult() is called.
 
| Constructor Summary | |
|---|---|
ExecutionFinishedEvent(java.util.concurrent.Callable task,
                                             T result)
Constructs an ExecutionFinishedEvent for a task that finished
 successfully. | 
|
ExecutionFinishedEvent(Throwable t,
                                             java.util.concurrent.Callable task)
Constructs an ExecutionFinishedEvent for a task that terminated
 abnormally. | 
|
| Method Summary | |
|---|---|
 T | 
getResult()
Returns the result value that the finished task returned.  | 
 java.util.concurrent.Callable | 
getTask()
Returns the corresponding task instance.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
ExecutionFinishedEvent(java.util.concurrent.Callable task,
                       T result)
ExecutionFinishedEvent for a task that finished
 successfully.
task - result - 
ExecutionFinishedEvent(Throwable t,
                       java.util.concurrent.Callable task)
ExecutionFinishedEvent for a task that terminated
 abnormally.
t - Throwable that the terminated task threwtask - | Method Detail | 
|---|
public java.util.concurrent.Callable getTask()
public T getResult()
            throws java.util.concurrent.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.
java.util.concurrent.CancellationException - if task timed out / has been cancelled
Throwable - if task terminated with an exception or error
  | 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
					For more information visit: http://deegree.sourceforge.net