7 |
|
package java.util.concurrent; |
8 |
|
|
9 |
|
import java.io.Serializable; |
10 |
+ |
import java.lang.ref.ReferenceQueue; |
11 |
+ |
import java.lang.ref.WeakReference; |
12 |
+ |
import java.lang.reflect.Constructor; |
13 |
|
import java.util.Collection; |
14 |
|
import java.util.List; |
15 |
|
import java.util.RandomAccess; |
13 |
– |
import java.lang.ref.WeakReference; |
14 |
– |
import java.lang.ref.ReferenceQueue; |
15 |
– |
import java.util.concurrent.Callable; |
16 |
– |
import java.util.concurrent.CancellationException; |
17 |
– |
import java.util.concurrent.ExecutionException; |
18 |
– |
import java.util.concurrent.Future; |
19 |
– |
import java.util.concurrent.RejectedExecutionException; |
20 |
– |
import java.util.concurrent.RunnableFuture; |
21 |
– |
import java.util.concurrent.TimeUnit; |
22 |
– |
import java.util.concurrent.TimeoutException; |
16 |
|
import java.util.concurrent.locks.ReentrantLock; |
24 |
– |
import java.lang.reflect.Constructor; |
17 |
|
|
18 |
|
/** |
19 |
|
* Abstract base class for tasks that run within a {@link ForkJoinPool}. |