java.util.concurrent
Interface ExecutorService
- All Superinterfaces:
- Executor
- All Known Subinterfaces:
- ListeningExecutorService, ListeningScheduledExecutorService, ScheduledExecutorService
- All Known Implementing Classes:
- ForwardingExecutorService, ForwardingListeningExecutorService
public interface ExecutorService
- extends Executor
shutdown
void shutdown()
shutdownNow
List<Runnable> shutdownNow()
isShutdown
boolean isShutdown()
isTerminated
boolean isTerminated()
awaitTermination
boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
- Throws:
InterruptedException
submit
<T> Future<T> submit(Callable<T> task)
submit
<T> Future<T> submit(Runnable task,
T result)
submit
Future<?> submit(Runnable task)
invokeAll
<T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks)
throws InterruptedException
- Throws:
InterruptedException
invokeAll
<T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks,
long timeout,
TimeUnit unit)
throws InterruptedException
- Throws:
InterruptedException
invokeAny
<T> T invokeAny(Collection<? extends Callable<T>> tasks)
throws InterruptedException,
ExecutionException
- Throws:
InterruptedException
ExecutionException
invokeAny
<T> T invokeAny(Collection<? extends Callable<T>> tasks,
long timeout,
TimeUnit unit)
throws InterruptedException,
ExecutionException,
TimeoutException
- Throws:
InterruptedException
ExecutionException
TimeoutException
Copyright © 2010-2012. All Rights Reserved.