The list of methods to do Thread Callable are organized into topic(s).
T
call(Callable callable) call
try {
return callable.call();
} catch (Exception e) {
throw new RuntimeException(e);
T
call(final Callable c) call
try {
return c == null ? null : c.call();
} catch (final Exception e) {
throw toRuntimeException(e);
Callable
> callableListCreator()
callable List Creator
return new Callable<List<T>>() {
@Override
public List<T> call() {
return new ArrayList<T>();
};
Object
callInLoader(Callable body, ClassLoader loader) call In Loader
ClassLoader originalCl = Thread.currentThread().getContextClassLoader();
try {
Thread.currentThread().setContextClassLoader(loader);
return body.call();
} finally {
Thread.currentThread().setContextClassLoader(originalCl);
void
executeLocally(Callable task) execute Locally
try {
task.call();
} catch (RuntimeException ex) {
throw ex;
} catch (Exception ex) {
throw new RuntimeException(ex);