1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| void execute(Runnable command)
<T> Future<T> submit(Callable<T> task);
<T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException;
<T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout,TimeUnint unit) throws InterruptedException;
<T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException,ExecutionException;
<T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout,TimeUnint unit) throws InterruptedException,ExecutionException,TineoutException;
|