软件包 | 描述 |
---|---|
java.util.concurrent |
在并发编程中常用的实用类。
|
Modifier and Type | Interface and Description |
---|---|
interface |
BlockingDeque<E>
一,另外支持阻塞操作等待队列非空的检索成为一个元素时
Deque ,等待空间变得可用时在deque容器存储元件。
|
interface |
TransferQueue<E>
一个
BlockingQueue ,生产者可以等待消费者接收元件。
|
Modifier and Type | Class and Description |
---|---|
class |
ArrayBlockingQueue<E>
一个有界
blocking queue有一个数组。
|
class |
DelayQueue<E extends Delayed>
对
Delayed 元素无界
blocking queue,其中一个元素只可以当其延迟已过期。
|
class |
LinkedBlockingDeque<E>
一个可选择的有界
blocking deque基于链接节点。
|
class |
LinkedBlockingQueue<E>
一个可选择的有界
blocking queue基于链接节点。
|
class |
LinkedTransferQueue<E>
基于链接节点的无界
TransferQueue 。
|
class |
PriorityBlockingQueue<E>
无界
blocking queue使用相同的排序规则类的
PriorityQueue 供应阻断检索操作。
|
class |
SynchronousQueue<E>
一个
blocking queue其中每个插入操作必须等待相应的删除操作由另一个线程,反之亦然。
|
Modifier and Type | Method and Description |
---|---|
BlockingQueue<Runnable> |
ScheduledThreadPoolExecutor.getQueue()
返回此执行器使用的任务队列。
|
BlockingQueue<Runnable> |
ThreadPoolExecutor.getQueue()
返回此执行器使用的任务队列。
|
Constructor and Description |
---|
ExecutorCompletionService(Executor executor, BlockingQueue<Future<V>> completionQueue)
创建使用提供的执行基本任务的执行和提供的队列为完成队列的executorcompletionservice。
|
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue)
创建具有给定的初始参数和默认线厂和拒绝执行处理程序的一个新的
ThreadPoolExecutor 。
|
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, RejectedExecutionHandler handler)
创建具有给定的初始参数和默认线厂一个新的
ThreadPoolExecutor 。
|
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory)
创建一个新的
ThreadPoolExecutor 与给定的初始参数和默认拒绝执行处理程序。
|
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler)
创建具有给定的初始参数的一种新
ThreadPoolExecutor 。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.