public class FutureUtils extends Object
| Constructor and Description |
|---|
FutureUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> CompletableFuture<T> |
failedFuture(Throwable ex)
Return a
CompletableFuture that has been completed exceptionally using the provided Throwable. |
static <T> CompletableFuture<T> |
failedUaFuture(long statusCode)
Return a
CompletableFuture that has been completed exceptionally with a UaException built from
statusCode. |
static <T> CompletableFuture<T> |
failedUaFuture(com.digitalpetri.opcua.stack.core.types.builtin.StatusCode statusCode)
Return a
CompletableFuture that has been completed exceptionally with a UaException built from
statusCode. |
static <T> CompletableFuture<List<T>> |
sequence(CompletableFuture<T>[] futures) |
static <T> CompletableFuture<List<T>> |
sequence(List<CompletableFuture<T>> futures) |
public static <T> CompletableFuture<List<T>> sequence(List<CompletableFuture<T>> futures)
public static <T> CompletableFuture<List<T>> sequence(CompletableFuture<T>[] futures)
public static <T> CompletableFuture<T> failedFuture(Throwable ex)
CompletableFuture that has been completed exceptionally using the provided Throwable.ex - the Throwable to complete with.CompletableFuture that has been completed exceptionally using the provided Throwable.public static <T> CompletableFuture<T> failedUaFuture(long statusCode)
CompletableFuture that has been completed exceptionally with a UaException built from
statusCode.statusCode - the status code to build the UaException with.CompletableFuture that has been completed exceptionally with a UaException built from
statusCode.public static <T> CompletableFuture<T> failedUaFuture(com.digitalpetri.opcua.stack.core.types.builtin.StatusCode statusCode)
CompletableFuture that has been completed exceptionally with a UaException built from
statusCode.statusCode - the StatusCode to build the UaException with.CompletableFuture that has been completed exceptionally with a UaException built from
statusCode.Copyright © 2015. All rights reserved.