软件包 | 描述 |
---|---|
java.util.concurrent |
在并发编程中常用的实用类。
|
Modifier and Type | Class and Description |
---|---|
class |
ScheduledThreadPoolExecutor
一个
ThreadPoolExecutor 可以另外安排的命令来运行在一个给定的延迟,或定期执行。
|
Modifier and Type | Method and Description |
---|---|
static ScheduledExecutorService |
Executors.newScheduledThreadPool(int corePoolSize)
创建一个线程池,可以调度命令在一个给定的延迟后运行,或周期性地执行。
|
static ScheduledExecutorService |
Executors.newScheduledThreadPool(int corePoolSize, ThreadFactory threadFactory)
创建一个线程池,可以调度命令在一个给定的延迟后运行,或周期性地执行。
|
static ScheduledExecutorService |
Executors.newSingleThreadScheduledExecutor()
创建一个单线程的执行器,可以调度命令在一个给定的延迟后运行,或周期性地执行。
|
static ScheduledExecutorService |
Executors.newSingleThreadScheduledExecutor(ThreadFactory threadFactory)
创建一个单线程的执行器,可以调度命令在一个给定的延迟后运行,或周期性地执行。
|
static ScheduledExecutorService |
Executors.unconfigurableScheduledExecutorService(ScheduledExecutorService executor)
返回一个对象,代表所有定义的
ScheduledExecutorService 方法指定遗嘱执行人,但没有任何其他的方法,否则可能会使用投。
|
Modifier and Type | Method and Description |
---|---|
static ScheduledExecutorService |
Executors.unconfigurableScheduledExecutorService(ScheduledExecutorService executor)
返回一个对象,代表所有定义的
ScheduledExecutorService 方法指定遗嘱执行人,但没有任何其他的方法,否则可能会使用投。
|
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.