软件包 | 描述 |
---|---|
java.sql |
提供的API来访问和处理的数据存储在数据源(通常是一个关系数据库)使用java编程语言
TM。
|
java.util.concurrent |
在并发编程中常用的实用类。
|
javax.management |
在java管理扩展提供了核心课程。
|
javax.xml.ws |
这个套件包含核心JAX-WS API。
|
javax.xml.ws.spi |
此包定义了斯皮思JAX-WS。
|
Modifier and Type | Method and Description |
---|---|
void |
Connection.abort(Executor executor)
终止一个打开的连接。
|
void |
Connection.setNetworkTimeout(Executor executor, int milliseconds)
设置最大时期
Connection 或物体从
Connection 创建将等待数据库回答任何一个请求。
|
Modifier and Type | Interface and Description |
---|---|
interface |
ExecutorService
|
interface |
ScheduledExecutorService
一个
ExecutorService 可以调度命令后运行一个给定的延迟,或定期执行。
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractExecutorService
提供
ExecutorService 执行方法的默认实现。
|
class |
ForkJoinPool
运行一个
ExecutorService
ForkJoinTask s。
|
class |
ScheduledThreadPoolExecutor
一个
ThreadPoolExecutor 可以另外安排的命令来运行在一个给定的延迟,或定期执行。
|
class |
ThreadPoolExecutor
一个
ExecutorService 执行每个提交的任务使用一个可能几个池线程,使用
Executors 工厂方法通常配置。
|
Modifier and Type | Method and Description |
---|---|
CompletionStage<Void> |
CompletionStage.acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action, Executor executor)
返回一个新的completionstage,当这种或其他特定阶段的正常完成,使用提供的遗嘱执行人执行,与相应的结果作为参数提供的功能。
|
CompletableFuture<Void> |
CompletableFuture.acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action, Executor executor) |
<U> CompletionStage<U> |
CompletionStage.applyToEitherAsync(CompletionStage<? extends T> other, Function<? super T,U> fn, Executor executor)
返回一个新的completionstage,当这种或其他特定阶段的正常完成,使用提供的遗嘱执行人执行,与相应的结果作为参数提供的功能。
|
<U> CompletableFuture<U> |
CompletableFuture.applyToEitherAsync(CompletionStage<? extends T> other, Function<? super T,U> fn, Executor executor) |
<U> CompletionStage<U> |
CompletionStage.handleAsync(BiFunction<? super T,Throwable,? extends U> fn, Executor executor)
返回一个新的completionstage,当此阶段完成正常或异常,是使用提供的遗嘱执行人执行,这个阶段的结果和异常作为提供的函数参数。
|
<U> CompletableFuture<U> |
CompletableFuture.handleAsync(BiFunction<? super T,Throwable,? extends U> fn, Executor executor) |
CompletionStage<Void> |
CompletionStage.runAfterBothAsync(CompletionStage<?> other, Runnable action, Executor executor)
返回一个新的completionstage,当这种和其他特定阶段的正常完成,执行给定的操作使用提供的遗嘱执行人看到规则覆盖出色的完成
CompletionStage 文档。
|
CompletableFuture<Void> |
CompletableFuture.runAfterBothAsync(CompletionStage<?> other, Runnable action, Executor executor) |
CompletionStage<Void> |
CompletionStage.runAfterEitherAsync(CompletionStage<?> other, Runnable action, Executor executor)
返回一个新的completionstage,当这种或其他特定阶段的正常完成,执行给定的操作使用提供的遗嘱执行人。
|
CompletableFuture<Void> |
CompletableFuture.runAfterEitherAsync(CompletionStage<?> other, Runnable action, Executor executor) |
static CompletableFuture<Void> |
CompletableFuture.runAsync(Runnable runnable, Executor executor)
返回一个新的completablefuture是由一个任务运行在给定的执行器运行了异步完成动作后。
|
static <U> CompletableFuture<U> |
CompletableFuture.supplyAsync(Supplier<U> supplier, Executor executor)
返回一个新的completablefuture是由任务在给定的执行器通过调用给定的供应商获得的值异步运行完成。
|
CompletionStage<Void> |
CompletionStage.thenAcceptAsync(Consumer<? super T> action, Executor executor)
返回一个新的completionstage,当此阶段完成通常是使用提供的遗嘱执行人执行,这个阶段的结果作为参数提供的行动。
|
CompletableFuture<Void> |
CompletableFuture.thenAcceptAsync(Consumer<? super T> action, Executor executor) |
<U> CompletionStage<Void> |
CompletionStage.thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action, Executor executor)
返回一个新的completionstage,当这种和其他特定阶段的正常完成,使用提供的遗嘱执行人执行,与两结果提供的函数参数。
|
<U> CompletableFuture<Void> |
CompletableFuture.thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action, Executor executor) |
<U> CompletionStage<U> |
CompletionStage.thenApplyAsync(Function<? super T,? extends U> fn, Executor executor)
返回一个新的completionstage,当此阶段完成通常是使用提供的遗嘱执行人执行,这个阶段的结果作为参数提供的功能。
|
<U> CompletableFuture<U> |
CompletableFuture.thenApplyAsync(Function<? super T,? extends U> fn, Executor executor) |
<U,V> CompletionStage<V> |
CompletionStage.thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super T,? super U,? extends V> fn, Executor executor)
返回一个新的completionstage,当这种和其他特定阶段的正常完成,使用提供的遗嘱执行人执行,与两结果提供的函数参数。
|
<U,V> CompletableFuture<V> |
CompletableFuture.thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super T,? super U,? extends V> fn, Executor executor) |
<U> CompletionStage<U> |
CompletionStage.thenComposeAsync(Function<? super T,? extends CompletionStage<U>> fn, Executor executor)
返回一个新的completionstage,当此阶段完成通常是使用提供的遗嘱执行人执行,这个阶段的结果作为参数提供的功能。
|
<U> CompletableFuture<U> |
CompletableFuture.thenComposeAsync(Function<? super T,? extends CompletionStage<U>> fn, Executor executor) |
CompletionStage<Void> |
CompletionStage.thenRunAsync(Runnable action, Executor executor)
返回一个新的completionstage,当此阶段完成正常的情况下,使用提供的遗嘱执行人执行特定动作。
|
CompletableFuture<Void> |
CompletableFuture.thenRunAsync(Runnable action, Executor executor) |
CompletionStage<T> |
CompletionStage.whenCompleteAsync(BiConsumer<? super T,? super Throwable> action, Executor executor)
返回相同的结果或例外,这一阶段的新completionstage,这个阶段完成时,执行使用所提供的遗嘱执行人,给出的行动与结果(或
null 如果没有)和异常(或
null 如果没有)这个阶段作为参数。
|
CompletableFuture<T> |
CompletableFuture.whenCompleteAsync(BiConsumer<? super T,? super Throwable> action, Executor executor) |
Constructor and Description |
---|
ExecutorCompletionService(Executor executor)
创建使用提供的执行基本任务的执行和
LinkedBlockingQueue 作为完成队列的executorcompletionservice。
|
ExecutorCompletionService(Executor executor, BlockingQueue<Future<V>> completionQueue)
创建使用提供的执行基本任务的执行和提供的队列为完成队列的executorcompletionservice。
|
Constructor and Description |
---|
NotificationBroadcasterSupport(Executor executor)
构建了一个notificationbroadcastersupport每个侦听器使用给定的
Executor 调用。
|
NotificationBroadcasterSupport(Executor executor, MBeanNotificationInfo... info)
构建了一个关于可能发送的通知信息notificationbroadcastersupport,和每个听众是使用给定的
Executor 调用。
|
Modifier and Type | Method and Description |
---|---|
abstract Executor |
Endpoint.getExecutor()
返回此
Endpoint instance遗嘱执行人。
|
Executor |
Service.getExecutor()
返回此
Service instance遗嘱执行人。
|
Modifier and Type | Method and Description |
---|---|
abstract void |
Endpoint.setExecutor(Executor executor)
设置此
Endpoint 实例的执行器。
|
void |
Service.setExecutor(Executor executor)
设置此
Service 实例的执行器。
|
Modifier and Type | Method and Description |
---|---|
abstract Executor |
ServiceDelegate.getExecutor()
返回此
Service instance遗嘱执行人。
|
Modifier and Type | Method and Description |
---|---|
abstract void |
ServiceDelegate.setExecutor(Executor executor)
设置此
Service 实例的执行器。
|
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.