public class CompletionBuilders
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CompletionBuilders.CompletionBuilder<T> |
| Constructor and Description |
|---|
CompletionBuilders() |
| Modifier and Type | Method and Description |
|---|---|
static <T> CompletionBuilders.CompletionBuilder<T> |
complete(java.util.concurrent.CompletableFuture<T> future)
Complete
future with the result of the CompletableFuture that is provided to the returned
CompletionBuilders.CompletionBuilder. |
static <T> CompletionBuilders.CompletionBuilder<T> |
completeAsync(java.util.concurrent.CompletableFuture<T> future,
java.util.concurrent.Executor executor)
Complete
future asynchronously with the result of the CompletableFuture that is provided to
the returned CompletionBuilders.CompletionBuilder. |
public static <T> CompletionBuilders.CompletionBuilder<T> complete(java.util.concurrent.CompletableFuture<T> future)
future with the result of the CompletableFuture that is provided to the returned
CompletionBuilders.CompletionBuilder.T - the type returned by future.future - the future to complete.CompletionBuilders.CompletionBuilder.public static <T> CompletionBuilders.CompletionBuilder<T> completeAsync(java.util.concurrent.CompletableFuture<T> future, java.util.concurrent.Executor executor)
future asynchronously with the result of the CompletableFuture that is provided to
the returned CompletionBuilders.CompletionBuilder.T - the type returned by future.future - the future to complete.executor - the Executor to use.CompletionBuilders.CompletionBuilder.