public class ConcurrentUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ConcurrentUtil.Consumer<T> |
static interface |
ConcurrentUtil.Function<T,R> |
| Constructor and Description |
|---|
ConcurrentUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> ConcurrentUtil.Consumer<T> |
consumer(ConcurrentUtil.Consumer<T> consumer) |
static <T,R> ConcurrentUtil.Function<T,R> |
function(ConcurrentUtil.Function<T,R> function) |
static <T> T |
get(CompletableFuture<T> cf) |
static <T> T |
get(CompletableFuture<T> cf,
long duration,
TimeUnit unit) |
static <T> T |
result(CompletionStage<T> stage) |
public static <T> T get(CompletableFuture<T> cf)
public static <T> T get(CompletableFuture<T> cf, long duration, TimeUnit unit)
public static <T> T result(CompletionStage<T> stage)
public static <T,R> ConcurrentUtil.Function<T,R> function(ConcurrentUtil.Function<T,R> function)
public static <T> ConcurrentUtil.Consumer<T> consumer(ConcurrentUtil.Consumer<T> consumer)
Copyright © 2020 Red Hat. All rights reserved.