软件包 | 描述 |
---|---|
java.lang |
提供对java编程语言的设计基础课。
|
java.nio.channels |
定义了渠道,它代表的是能够执行I/O操作的实体连接,如文件和套接字;定义选择器,多路复用,非阻塞I/O操作。
|
java.util.concurrent |
在并发编程中常用的实用类。
|
javax.management.openmbean |
提供开放的数据类型和开放MBean描述符类。
|
Modifier and Type | Field and Description |
---|---|
static 类<Void> |
Void.TYPE
代表相应的关键词
void 伪型
类 对象。
|
Modifier and Type | Method and Description |
---|---|
abstract Future<Void> |
AsynchronousSocketChannel.connect(SocketAddress remote)
连接此通道。
|
Modifier and Type | Method and Description |
---|---|
abstract <A> void |
AsynchronousSocketChannel.connect(SocketAddress remote, A attachment, CompletionHandler<Void,? super A> handler)
连接此通道。
|
Modifier and Type | Method and Description |
---|---|
Void |
RecursiveAction.getRawResult()
总是返回
null 。
|
Modifier and Type | Method and Description |
---|---|
CompletionStage<Void> |
CompletionStage.acceptEither(CompletionStage<? extends T> other, Consumer<? super T> action)
返回一个新的completionstage,当这种或其他特定阶段的正常完成,执行相应的结果作为参数提供的行动。
|
CompletableFuture<Void> |
CompletableFuture.acceptEither(CompletionStage<? extends T> other, Consumer<? super T> action) |
CompletionStage<Void> |
CompletionStage.acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action)
返回一个新的completionstage,当这种或其他特定阶段的正常完成,利用这个阶段的默认的异步执行机构执行,与相应的结果作为参数提供的行动。
|
CompletableFuture<Void> |
CompletableFuture.acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action) |
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) |
static CompletableFuture<Void> |
CompletableFuture.allOf(CompletableFuture<?>... cfs)
返回一个新的completablefuture,完成时,所有的completablefutures完整了。
|
CompletionStage<Void> |
CompletionStage.runAfterBoth(CompletionStage<?> other, Runnable action)
返回一个新的completionstage,当和其他阶段都正常完成,执行特定动作。
|
CompletableFuture<Void> |
CompletableFuture.runAfterBoth(CompletionStage<?> other, Runnable action) |
CompletionStage<Void> |
CompletionStage.runAfterBothAsync(CompletionStage<?> other, Runnable action)
返回一个新的completionstage,当这种和其他特定阶段的正常完成,利用这个阶段的默认的异步执行机构执行特定动作。
|
CompletableFuture<Void> |
CompletableFuture.runAfterBothAsync(CompletionStage<?> other, Runnable action) |
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.runAfterEither(CompletionStage<?> other, Runnable action)
返回一个新的completionstage,当这种或其他特定阶段的正常完成,执行特定动作。
|
CompletableFuture<Void> |
CompletableFuture.runAfterEither(CompletionStage<?> other, Runnable action) |
CompletionStage<Void> |
CompletionStage.runAfterEitherAsync(CompletionStage<?> other, Runnable action)
返回一个新的completionstage,当这种或其他特定阶段的正常完成,利用这个阶段的默认的异步执行机构执行特定动作。
|
CompletableFuture<Void> |
CompletableFuture.runAfterEitherAsync(CompletionStage<?> other, Runnable action) |
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)
返回一个新的completablefuture是由一个任务运行在
ForkJoinPool.commonPool() 它运行的特定动作完成后异步。
|
static CompletableFuture<Void> |
CompletableFuture.runAsync(Runnable runnable, Executor executor)
返回一个新的completablefuture是由一个任务运行在给定的执行器运行了异步完成动作后。
|
CompletionStage<Void> |
CompletionStage.thenAccept(Consumer<? super T> action)
返回一个新的completionstage,当此阶段完成正常的情况下,执行这一阶段的结果作为参数提供的行动。
|
CompletableFuture<Void> |
CompletableFuture.thenAccept(Consumer<? super T> action) |
CompletionStage<Void> |
CompletionStage.thenAcceptAsync(Consumer<? super T> action)
返回一个新的completionstage,当此阶段完成这个阶段通常使用默认的异步执行机构执行,这一阶段的结果作为参数提供的行动。
|
CompletableFuture<Void> |
CompletableFuture.thenAcceptAsync(Consumer<? super T> action) |
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.thenAcceptBoth(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action)
返回一个新的completionstage,当和其他阶段都完全正常,是执行了两结果提供的操作参数。
|
<U> CompletableFuture<Void> |
CompletableFuture.thenAcceptBoth(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action) |
<U> CompletionStage<Void> |
CompletionStage.thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action)
返回一个新的completionstage,当这种和其他特定阶段的正常完成,利用这个阶段的默认的异步执行机构执行,与两结果提供的操作参数。
|
<U> CompletableFuture<Void> |
CompletableFuture.thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action) |
<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) |
CompletionStage<Void> |
CompletionStage.thenRun(Runnable action)
返回一个新的completionstage,当此阶段完成通常执行特定动作。
|
CompletableFuture<Void> |
CompletableFuture.thenRun(Runnable action) |
CompletionStage<Void> |
CompletionStage.thenRunAsync(Runnable action)
返回一个新的completionstage,当此阶段完成这个阶段通常使用默认的异步执行机构执行特定动作。
|
CompletableFuture<Void> |
CompletableFuture.thenRunAsync(Runnable action) |
CompletionStage<Void> |
CompletionStage.thenRunAsync(Runnable action, Executor executor)
返回一个新的completionstage,当此阶段完成正常的情况下,使用提供的遗嘱执行人执行特定动作。
|
CompletableFuture<Void> |
CompletableFuture.thenRunAsync(Runnable action, Executor executor) |
Modifier and Type | Method and Description |
---|---|
protected void |
RecursiveAction.setRawResult(Void mustBeNull)
需要空完成值。
|
Modifier and Type | Field and Description |
---|---|
static SimpleType<Void> |
SimpleType.VOID
描述值的java类的名称是
java.lang.Void 的
SimpleType 实例。
|
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.