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


Method Summary
 boolean awaitTermination(long timeout, TimeUnit unit)
           
<T> List<Future<T>>
invokeAll(Collection<? extends Callable<T>> tasks)
           
<T> List<Future<T>>
invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
           
<T> T
invokeAny(Collection<? extends Callable<T>> tasks)
           
<T> T
invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
           
 boolean isShutdown()
           
 boolean isTerminated()
           
 void shutdown()
           
 List<Runnable> shutdownNow()
           
<T> Future<T>
submit(Callable<T> task)
           
 Future<?> submit(Runnable task)
           
<T> Future<T>
submit(Runnable task, T result)
           
 
Methods inherited from interface java.util.concurrent.Executor
execute
 

Method Detail

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.