T - the type of the result@FunctionalInterface public interface ISafeRunnableWithResult<T> extends ISafeRunnable
ISafeRunnable this runnable is able to return a result.
This interface can be used without OSGi running.
Clients may implement this interface.
SafeRunner.run(ISafeRunnableWithResult)| Modifier and Type | Method and Description |
|---|---|
default void |
run()
Runs this runnable.
|
T |
runWithResult()
Runs this runnable and returns the result.
|
handleExceptiondefault void run()
throws java.lang.Exception
ISafeRunnableISafeRunnable.handleException(java.lang.Throwable) method.run in interface ISafeRunnablejava.lang.Exception - if a problem occurred while running this methodSafeRunner.run(ISafeRunnable)T runWithResult() throws java.lang.Exception
ISafeRunnable.handleException(java.lang.Throwable) method.java.lang.Exception - if a problem occurred while running this methodSafeRunner.run(ISafeRunnable)