Package adams.multiprocess
Class CallableWithResult<T>
- java.lang.Object
-
- adams.multiprocess.CallableWithResult<T>
-
-
Constructor Summary
Constructors Constructor Description CallableWithResult()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
call()
Executes the code.protected abstract T
doCall()
Performs the actual code execution.T
getResult()
Returns the result of the execution.
-
-
-
Field Detail
-
m_Result
protected T m_Result
the result.
-
-
Method Detail
-
doCall
protected abstract T doCall() throws Exception
Performs the actual code execution.- Returns:
- the result
- Throws:
Exception
- if failed to execute
-
getResult
public T getResult()
Returns the result of the execution.- Returns:
- the result
-
-