ch.javasoft.job
Interface JobResult<R>

Type Parameters:
R - The return value type of the result

public interface JobResult<R>

The JobResult gives access to the result of an Executable, either to the return value for normal termination, or to the exception if any has occurred.


Method Summary
 Throwable getException()
           
 R getResult()
           
 boolean isException()
           
 

Method Detail

getResult

R getResult()
Returns:
The result, or null if an exception occurred. The result might also be null if normal termination returned null, or if it was a void method.

getException

Throwable getException()
Returns:
The exception, if termination caused any, or null otherwise

isException

boolean isException()
Returns:
true if an exception terminated the execution, i.e. iff getException() does not return null.