aboutsummaryrefslogtreecommitdiff
path: root/guava-bootstrap/src/java/util
diff options
context:
space:
mode:
authorBjorn Bringert <bringert@android.com>2012-05-07 16:50:46 +0100
committerBjorn Bringert <bringert@android.com>2012-05-08 04:13:29 +0100
commit1d580d0f6ee4f21eb309ba7b509d2c6d671c4044 (patch)
treec57d227d991d94cd6e260718ff83edf59e95f921 /guava-bootstrap/src/java/util
parent5b0ce86c15e41a6aca9296ad98d982a212bd0f3b (diff)
downloadguava-1d580d0f6ee4f21eb309ba7b509d2c6d671c4044.tar.gz
Upgrade guava to v11.0.2
Bug: 6457759 Change-Id: Ie9aa2faaf572f1be8e203a447f357510136ae6b9
Diffstat (limited to 'guava-bootstrap/src/java/util')
-rw-r--r--guava-bootstrap/src/java/util/concurrent/ExecutorService.java47
1 files changed, 47 insertions, 0 deletions
diff --git a/guava-bootstrap/src/java/util/concurrent/ExecutorService.java b/guava-bootstrap/src/java/util/concurrent/ExecutorService.java
new file mode 100644
index 000000000..f0c67fb12
--- /dev/null
+++ b/guava-bootstrap/src/java/util/concurrent/ExecutorService.java
@@ -0,0 +1,47 @@
+/*
+ * This file is a modified version of
+ * http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/concurrent/ExecutorService.java?revision=1.51
+ * 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/publicdomain/zero/1.0/
+ */
+
+package java.util.concurrent;
+
+import java.util.Collection;
+import java.util.List;
+
+public interface ExecutorService extends Executor {
+ void shutdown();
+
+ List<Runnable> shutdownNow();
+
+ boolean isShutdown();
+
+ boolean isTerminated();
+
+ boolean awaitTermination(long timeout, TimeUnit unit)
+ throws InterruptedException;
+
+ <T> Future<T> submit(Callable<T> task);
+
+ <T> Future<T> submit(Runnable task, T result);
+
+ Future<?> submit(Runnable 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, TimeUnit unit)
+ throws InterruptedException;
+
+ <T> T invokeAny(Collection<? extends Callable<T>> tasks)
+ throws InterruptedException, ExecutionException;
+
+ <T> T invokeAny(
+ Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
+ throws InterruptedException, ExecutionException, TimeoutException;
+}