public static class CompletionBuilders.CompletionBuilder<T>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
CompletionBuilders.CompletionBuilder<T> |
async(java.util.concurrent.Executor executor)
Turn this
CompletionBuilders.CompletionBuilder into an AsyncCompletionBuilder. |
java.util.concurrent.CompletableFuture<T> |
with(java.util.concurrent.CompletableFuture<T> future)
Complete the contained to-be-completed
CompletableFuture using the result of future. |
public CompletionBuilders.CompletionBuilder<T> async(java.util.concurrent.Executor executor)
CompletionBuilders.CompletionBuilder into an AsyncCompletionBuilder.executor - the Executor to use for the async completion.AsyncCompletionBuilder.public java.util.concurrent.CompletableFuture<T> with(java.util.concurrent.CompletableFuture<T> future)
CompletableFuture using the result of future.future - the CompletableFuture to use as the result for the contained future.CompletionBuilders.CompletionBuilder.