public abstract class RunnableWithResult<T>
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
RunnableWithResult() |
Modifier and Type | Method and Description |
---|---|
T |
getResult()
Get the result of the run execution.
|
T |
getResultFromTry()
Get the result of the run execution.
|
void |
run() |
void |
runWithTry()
Run method to be implemented by the derived class.
|
public T getResult()
public void run()
run
in interface java.lang.Runnable
public T getResultFromTry() throws java.lang.Throwable
java.lang.Throwable
- exceptions encountered during runpublic void runWithTry() throws java.lang.Throwable
getResult()
.java.lang.Throwable