| Constructor and Description |
|---|
WithException() |
| Modifier and Type | Method and Description |
|---|---|
static void |
run(Callable<Void> callable)
Executes the given callable and returns the result.
|
static <T> T |
runWithResult(Callable<T> callable)
Executes the given callable and returns the result.
|
public static <T> T runWithResult(Callable<T> callable) throws ESException
T - the return type of the callablecallable - the callable to be execuedCallableESException - in case an error occurs during execution of the callablepublic static void run(Callable<Void> callable) throws ESException
callable - the callable to be execuedESException - in case an error occurs during execution of the callableCopyright © 2017. All rights reserved.