![JAR search and dependency download from the Maven repository](/logo.png)
java.util.concurrent.AbstractExecutorService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of guava-bootstrap-jdk5 Show documentation
Show all versions of guava-bootstrap-jdk5 Show documentation
ExecutorService's type parameters changed between JDK5 and JDK6 in a
way that makes it impossible for our invokeAll/invokeAny methods to
match both at compile time. This project builds a JDK6-like copy of
ExecutorService (but with JDK5 compiler settings to ensure that it will
work with JRE5 at runtime). It also builds a version of
AbstractExecutorService that is equivalent to a JDK5 version but using
the JDK6 type parameters for the invokeAll/invokeAny methods just as with
ExecutorService. This project's is then used in the bootstrap class path
of Guava proper.
The newest version!
/*
* This file is a modified version of
* http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/concurrent/AbstractExecutorService.java?revision=1.20
* which contained the following notice:
*
* Written by Doug Lea with assistance from members of JCP JSR-166
* Expert Group and released to the public domain, as explained at
* http://creativecommons.org/licenses/publicdomain
*/
package java.util.concurrent;
import java.util.*;
public abstract class AbstractExecutorService implements ExecutorService {
public Future> submit(Runnable task) {
if (task == null) throw new NullPointerException();
FutureTask
© 2015 - 2025 Weber Informatics LLC | Privacy Policy